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

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

  • Comment on Re^4: Why I can't fetch any special variables ?

Replies are listed 'Best First'.
Re^5: Why I can't fetch any special variables ?
by ikegami (Patriarch) on Sep 15, 2011 at 08:00 UTC

    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