in reply to Why I can't fetch any special variables ?
$< doesn't get created automatically. Just like with any other variable, you need to use the G_ADD flag to create the var if it doesn't exist. The magic will be added automatically when it's created.
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" (or whatever the C equivalent is) to gv_fetchpv.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why I can't fetch any special variables ?
by PerlOnTheWay (Monk) on Sep 15, 2011 at 04:40 UTC | |
|
Re^2: Why I can't fetch any special variables ?
by PerlOnTheWay (Monk) on Sep 15, 2011 at 04:56 UTC | |
by ikegami (Patriarch) on Sep 15, 2011 at 05:47 UTC | |
|
Re^2: Why I can't fetch any special variables ?
by Anonymous Monk on Sep 15, 2011 at 04:48 UTC | |
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 |