Re: Arrow Notation vs. Colon Notation

2011-07-21 Thread C.DeRykus
On Jul 20, 6:09 pm, shawnhco...@gmail.com (Shawn H Corey) wrote: > On 11-07-20 07:03 PM, Uri Guttman wrote: > > > the other is a class method call. it has two major differences. first it > > will pass its class (or object, the arg before ->) as the first arg in > > the call. the second thing is tha

Re: Arrow Notation vs. Colon Notation

2011-07-20 Thread Rob Dixon
On 21/07/2011 05:32, Rob Dixon wrote: It would be possible to generate calls to undefined subroutines at compile time, but because the symbol table can be modified at run time with such trickery suck as *Foo::bar = \&Foo::foo it is also left until run time to report any such errors. My apolog

Re: Arrow Notation vs. Colon Notation

2011-07-20 Thread Uri Guttman
> "RD" == Rob Dixon writes: RD> I'm not sure what you mean here Shawn. Errors are generated at run time RD> in both cases, so code like RD> if (0) { RD> Foo::bar(); RD> } RD> if (0) { Foo-> bar(); RD> } RD> will generate no errors at all. In particular the meth

Re: Arrow Notation vs. Colon Notation

2011-07-20 Thread Rob Dixon
On 21/07/2011 02:09, Shawn H Corey wrote: On 11-07-20 07:03 PM, Uri Guttman wrote: the other is a class method call. it has two major differences. first it will pass its class (or object, the arg before ->) as the first arg in the call. the second thing is that it will search the class hierarchy

Re: Arrow Notation vs. Colon Notation

2011-07-20 Thread Shawn H Corey
On 11-07-20 07:03 PM, Uri Guttman wrote: the other is a class method call. it has two major differences. first it will pass its class (or object, the arg before ->) as the first arg in the call. the second thing is that it will search the class hierarchy (using the package global's @ISA) to find

Re: Arrow Notation vs. Colon Notation

2011-07-20 Thread jbiskofski
Marc that was a really good question. On the surface they do seem exactly alike. Cheers! - biskofski On Jul 20, 2011, at 6:29 PM, Marc wrote: > On Jul 20, 2011, at 4:03 PM, Uri Guttman wrote: > >> so don't think they are even similar as one is a sub call and the other >> is a class method c

Re: Arrow Notation vs. Colon Notation

2011-07-20 Thread Marc
On Jul 20, 2011, at 4:03 PM, Uri Guttman wrote: > so don't think they are even similar as one is a sub call and the other > is a class method call. they aren't interchangeble at all Yep, you're correct. Why is everything so simple once someone explains it to you??? =;) That al

Re: Arrow Notation vs. Colon Notation

2011-07-20 Thread Uri Guttman
> "M" == Marc writes: M>I've noticed that the following two lines seem to be equivalent when calling a sub from a module called Lib.pm: Lib-> load_config("config.dat"); M> Lib::load_config("config.dat"); M>Is this just a case of TIMTOWTDI or is there a difference in how