Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by Juerd (Abbot)
on May 17, 2002 at 17:20 UTC ( [id://167368]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-25 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found