http://qs1969.pair.com?node_id=830733


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{...}).