Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

RE: and @ARGV

by beppu (Hermit)
on Jul 28, 2000 at 16:20 UTC ( #24834=note: print w/ replies, xml ) Need Help??


in reply to <> and @ARGV
in thread Subtle Quirks

Well, I went and looked at the Camel book again, and (to my surprise) the behaviour was documented. So yes -- I was not reading carefully, but...

I still think I wasn't out of my mind to be surprised. The only things I've used the angled brackets for are reading from file handles and globbing. The connection between <> and @ARGV doesn't seem obvious to me. It's a special-case behaviour.

I've only been w/ Perl for 1.5 years. Give me time. :)


Comment on RE: and @ARGV
RE: RE: and @ARGV
by chip (Curate) on Jul 28, 2000 at 22:59 UTC
    Sorry if I came off as being snippy. It's just that the use of <> and @ARGV is so common in just about every text-oriented Perl script ever written.... I was just surprised that your experience was so atypical. It's as if C programmer were surprised to find that if you're in a while, and you do a return, it gets you out. (BTW, that was a real question from a real former cow orker. He's probably writing VB these days.)

        -- Chip Salzenberg, Free-Floating Agent of Chaos

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2015-07-03 20:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (56 votes), past polls