$< 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.
In reply to Re: Why I can't fetch any special variables ?
by ikegami
in thread Why I can't fetch any special variables ?
by PerlOnTheWay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |