For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > March 2008 > $topIter->next()









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author $topIter->next()
Subra

2008-03-27, 7:12 pm

Can some one pls tell me wts the meaning of "$topIter->next()" ?
I know "->" is used for hash refs, but dont know when to use ->( ) !!!

Jenda Krynicky

2008-03-27, 7:12 pm

From: Subra <mailursubbu@gmail.com>

> Can some one pls tell me wts the meaning of "$topIter->next()" ?
> I know "->" is used for hash refs, but dont know when to use ->( ) !!!


-> is used for any references. And for method calls. In this case you
are calling the next() method of the $topIter object.

Jenda
===== Jenda@Krynicky.cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery

Gunnar Hjalmarsson

2008-03-27, 7:12 pm

Just posted to clpmisc:

-------- Original Message --------
Subject: Re: Operator ->()
Date: Thu, 27 Mar 2008 20:35:27 +0100
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Newsgroups: comp.lang.perl.misc

Subra wrote:

[ exactly the same question as was posted to the beginners list a few
minutes earlier ]

DO NOT DO THAT !!!

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com