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

Re: recurring perl bug: capital Z's.

by Fletch (Chancellor)
on Nov 12, 2001 at 09:08 UTC ( #124746=note: print w/ replies, xml ) Need Help??


in reply to recurring perl bug: capital Z's.
in thread A little fun with merlyn

and really, couldn't this whole chain of stuff be done automaticaly? laziness, man. you've typed basically the same line 50 times.

How do you know he didn't do it automatically? :) At any rate, yes you could have it generated programatically. If they weren't lexically declared and were stuck in their own package you could just slurp from the symbol table. But something like this would work in this case where they are lexicals.

{ no strict 'refs'; my @chrs = ( 'a'..'h', 'k', 'm', 'n', 'p'..'z' ); push @chrs, map uc, @chrs; push @chrs, 2..9; $charlist{ $_ } = \@{"char_$_"} foreach @chrs; }


Comment on Re: recurring perl bug: capital Z's.
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2014-12-29 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (185 votes), past polls