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