Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

•Re: Re: Undocumented variable?

by merlyn (Sage)
on Sep 13, 2003 at 13:33 UTC ( #291247=note: print w/replies, xml ) Need Help??

in reply to Re: Undocumented variable?
in thread Undocumented variable?

AFAIK @$ is not a perl global or package variable
Actually, the punctuation variables are always forced into package main for hysterical reasons, and are therefore as global (insensitive to current package, and predecalared) as things that use STDIN, STDOUT, STDERR, ARGV, ARGVOUT, ENV, or INC as part of their name.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: •Re: Re: Undocumented variable?
by Dog and Pony (Priest) on Sep 13, 2003 at 14:25 UTC

    This is a new one for me. What/how is that used?

    Update: Never mind, found it. Though I see I already got a reply, thanks! (and downvotes for an honest question, some people are just too funny ;~) Still, was a new one to me... ah well.

    You have moved into a dark place.
    It is pitch black. You are likely to be eaten by a grue.

      From perlvar (5.8.0):

      The special filehandle that points to the currently open output file when doing edit-in-place processing with -i. Useful when you have to do a lot of inserting and don't want to keep modifying $_. See perlrun for the -i switch.

      Note: While it is mentioned in the Perl documentation prior to version 5.8.0, I have yet to see it explained in such a way.

Re: •Re: Re: Undocumented variable?
by Rudif (Hermit) on Sep 13, 2003 at 16:41 UTC
    >> the punctuation variables are always forced into package main for hysterical reasons

    Is that meant as in "behavior exhibiting overwhelming or unmanageable fear or emotional excess", or just a typo?

    :-) Rudif

      this is also hacker jargon, please see the jargon file entry on this. i don't know if this was deliberate, though.

      Thank you. I'm glad I asked.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://291247]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2020-10-29 02:37 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (266 votes). Check out past polls.