Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: range-based magical autoincrement

by educated_foo (Vicar)
on Jun 28, 2002 at 04:12 UTC ( #177923=note: print w/ replies, xml ) Need Help??

in reply to range-based magical autoincrement

Scalar glob is a scary thing, maybe even "considered harmful." For another interesting application, see this golf entry.


Comment on Re: range-based magical autoincrement
Replies are listed 'Best First'.
Re: Re: range-based magical autoincrement
by Juerd (Abbot) on Jun 28, 2002 at 17:01 UTC

    It's not the scalar glob that scares me. It's the use of glob for non-file things :)

    I'd probably just use a list, or an array if I need it multiple times:

    for ('A'..'F', 0..9, qw/P Q R/) { ... }
    Update - Hmm... I misread the glob, and thought the }{ parts were just commas. Sorry :)

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2015-11-30 12:07 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (769 votes), past polls