Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: (jeffa) Re: Pronounceable syntax or beloved punctuation?

by ambrus (Abbot)
on Mar 21, 2004 at 09:48 UTC ( [id://338417]=note: print w/replies, xml ) Need Help??


in reply to Re: (jeffa) Re: Pronounceable syntax or beloved punctuation?
in thread Pronounceable syntax or beloved punctuation?

Actually, you don't need * in readline *ARGV, readline ARGV is enough.

Replies are listed 'Best First'.
Re: Re: Re: (jeffa) Re: Pronounceable syntax or beloved punctuation?
by Juerd (Abbot) on Mar 21, 2004 at 11:33 UTC

    Actually, you don't need * in readline *ARGV, readline ARGV is enough.

    strict allows unquoted strings where filehandles are expected. readline creates such context. readline ARGV equals readline 'ARGV'. Like it or not, you're using a symbolic reference!

    So while you are right that the * isn't needed, I strongly advise against using readline with a bareword.

    Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Log In?
Username:
Password:

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

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

    No recent polls found