in reply to Re^2: Why I can't fetch any special variables ?
in thread Why I can't fetch any special variables ?

Sure it does perl -le " print defined $<"

No, your use of it created it. Try

perl -E'say for keys %::'

$^X is the actual name of the variable

Why are you contradicting two people without proof or argument?

>perl -E"say ${ $::{'^X'} }" >perl -E"say ${ $::{qq{\cX}} }" ...\perl.exe

Replies are listed 'Best First'.
Re^4: Why I can't fetch any special variables ?
by Anonymous Monk on Sep 15, 2011 at 06:26 UTC

    Why are you contradicting two people without proof or argument?

    I'm not contradicting two people, i'm contradicting you, because perlvar contradicts you, you don't need \cX

      The OP also showed that the var isn't named "^X" and that it is named "\cX" before you claimed the opposite.

      Furthermore, perlvar doesn't contradict anything I said. In fact, it says exactly the same thing I said. perlvar specifically says that $^X is a "single-control-character names" and that Perl "understands ^X (caret X) to mean the control-X character". Yes, perlvar says that $^X is just an alias for $. It even specifically uses $^X as the example!

      >perl -le"print qq{print qq{\$\cX}}"
      print qq{$}
      
      >perl -le"print qq{print qq{\$\cX}}" | perl -l
      ...\perl.exe