in reply to What's Wrong?
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:
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{#do something here} BEGIN { @ARGV = <*m*>; }
|
|---|