On Wed, Nov 19, 2008 at 10:08, Rob Dixon <[EMAIL PROTECTED]> wrote: > Chas. Owens wrote: >> On Sun, Nov 16, 2008 at 09:11, a b <[EMAIL PROTECTED]> wrote: >>> Hi , >>> Can any body tells me what do we mean by below code >>> <snip> >>> $ROUTE::COMM{NEWROUTE}{OS()} >>> </snip> >>> >>> Thanks in Advance >>> a b . >>> >> >> No, there is not enough context for me to know why this code is being >> used and off hand it looks like useless code to me (it is asking for a >> value and not doing anything with it), but I can tell you a few things >> that may be true about it: >> >> There is a subroutine named OS defined somewhere. >> There is a module named ROUTE. >> That module has a hash named COMM. >> That hash (possibly) has a key named NEWROUTE whose value is expected >> to be a hashref. > > It is my guess that OS is probably not an explicit subroutine, but rather > something of the form > > use constant OS => 'Platform'; snip
I thought so at first, but then I noticed that this person uppercased everything. This indicates a lack of experience to me, so I bet that he/she is not even aware of the constant pragma. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/