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

you can modify their contents via the empty angle brackets: <>. I don't think you can do that with glob ...

Well, this is the one case where I prefer angle brackets (in this special case often refered to as "the diamond operator") over the readline function.

You were right about this not being able with glob, as empty angle bracket expressions are handled by readline :) <> eq <ARGV> eq readline *ARGV (but only if the three lines (records) are stringologically equal).

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.

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

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

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