in reply to Re: Why I can't fetch any special variables ?
in thread Why I can't fetch any special variables ?
$< doesn't get created automatically.
Sure it does perl -le " print defined $<"
As for $^X, "^X" is a convenient way of writing Ctrl-X. Yes, you can use a real Ctrl-X after the $ in the code, and in fact, that's the real variable name. You'll need to pass "\cX"c (or whatever the C equivalent is) to gv_fetchpv.
$^X is the actual name of the variable, so no, you don't need to use \cX, you can use $^X, the actual name of the variable
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Why I can't fetch any special variables ?
by ikegami (Patriarch) on Sep 15, 2011 at 05:41 UTC | |
by Anonymous Monk on Sep 15, 2011 at 06:26 UTC | |
by ikegami (Patriarch) on Sep 15, 2011 at 08:00 UTC |