Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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 Anonymous Monk
on Mar 26, 2010 at 12:13 UTC ( [id://831127] : note . print w/replies, xml ) Need Help??


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

No. ' is the name of the variable, and because you don't declare it, it is global, and because the current package is main, they are &main::' and @main::' respectively
$ perl -le"print \@', \@{qq!main::'!}" ARRAY(0x979ff4)ARRAY(0x979ff4) $ perl -le"print &'" Undefined subroutine &main::' called at -e line 1.
  • Comment on Re^2: Need to know on the differnece between the usgae of $st_mode and $'st_mode what does the single quote refer to
  • Download Code