Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Need to know on the differnece between the usgae of $st_mode and $'st_mode what does the single quote refer to

by ikegami (Patriarch)
on Mar 25, 2010 at 05:45 UTC ( #830733=note: print w/replies, xml ) Need Help??


in reply to Need to know on the differnece between the usgae of $st_mode and $'st_mode what does the single quote refer to

$'var is an obsolete notation for $::var, which is also known as $main::var
  • Comment on Re: Need to know on the differnece between the usgae of $st_mode and $'st_mode what does the single quote refer to
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: Need to know on the differnece between the usgae of $st_mode and $'st_mode what does the single quote refer to
by aufflick (Deacon) on Mar 25, 2010 at 05:52 UTC

      For CPAN historians, this trick was also used by what I believe is the first CPAN joke module (D'oh), released several years before the Acme namespace was invented by TheDamian in 2001:

      I've also seen it employed in Perl Poetry, obfu and even golf (to improve the tie breaker by replacing sub SomeSub{...} with sub'SomeSub{...}).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://830733]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2023-12-03 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (20 votes). Check out past polls.

    Notices?