lloder174 has asked for the wisdom of the Perl Monks concerning the following question:

What is the literal value of the non-English special variable '$REAL_USER_ID' ? Is it '$< >' or '$<>'? What is the literal value of the non-English special variable '$EFFECTIVE_USER_ID' ? Is it '$> >>' or '$>>>'?

Replies are listed 'Best First'.
Re: userid special variables
by ikegami (Patriarch) on Sep 03, 2009 at 16:33 UTC

    Tip: All the special variables are exactly one character long to avoid interfering with operators. (e.g. Is "$<>" one variable or "$<" followed by the numerical less-than operator?)

    There's an exception to that rule. Variables whose name starts with "^" can have \w characters. To avoid confusion, the curlies around the name aren't optional for those variables. (e.g "$a" can also be written as "${a}", but the curlies can't be omitted for "${^PREMATCH}".)

Re: userid special variables
by arun_kom (Monk) on Sep 03, 2009 at 16:12 UTC
    $< and $> respectively.
Re: userid special variables
by bichonfrise74 (Vicar) on Sep 03, 2009 at 18:02 UTC