Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: What's Wrong?

by RhetTbull (Curate)
on May 15, 2001 at 16:54 UTC ( [id://80516]=note: print w/replies, xml ) Need Help??


in reply to What's Wrong?

uhmm...the first thing that's wrong is the subject line: "What's Wrong" tell's me nothing about your question. nada. zip. null.

The second thing that's wrong is your code fragment is very incomplete. Show us more code. Tell us what error you were expecting, and please give a more informative subject line. I doubt most monks would even look at a post titled "What's wrong."

As to your snippet, I don't think anything is wrong. I assume you meant something more like:

{#do something here} BEGIN { @ARGV = <*m*>; }
If you want to overwrite @ARGV with a glob in your BEGIN block then go for it. I wouldn't do it since it's probably not what the user expects to happen with ARGV, but I don't see why perl would stop you from doing it. Regards, --RT

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-20 03:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found