http://www.perlmonks.org?node_id=338417


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' }