Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: recurring perl bug: capital Z's.

by Fletch (Bishop)
on Nov 12, 2001 at 09:08 UTC ( [id://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; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-20 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found