in reply to Re^3: What is $::| ?
in thread What is $::| ?

How did you arrive at that conclusion?

I had simply tried

$ perl -e '$|=1; print "$main::|\n";' |

On second thought, it's obviously a parsing issue, i.e. $main::| is not being parsed as ${'main::|'}, but rather as $main::, so the '|' is being printed literally.

Replies are listed 'Best First'.
Re^5: What is $::| ?
by ikegami (Patriarch) on Feb 23, 2009 at 01:42 UTC
    You can see form the trailing "|" that you were referencing $main:: and not $main::|, so there's no ground for drawing conclusions about relation between $main::| and $|.

      Yeah, I got that in the meantime.

      Considering that the first version of your node Re^3: What is $::| ? read

      "Like the OP said, it's not valid Perl. Are you asking me to speculate if $| and $main::| would be the same if $main::| was valid? Probably. It is the case for $_ "

      it appears that it did take even you a second thought to figure out that one needs to write ${'main::|'}  :)