Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Declaring an Array Using Character Classes

by McA (Priest)
on Nov 27, 2012 at 08:48 UTC ( #1005813=note: print w/ replies, xml ) Need Help??


in reply to Declaring an Array Using Character Classes

Hi,

probably something like this:

my @arry = grep { is_of_some_class($_) } map { chr $_ } (1..255);

Best regards
McA


Comment on Re: Declaring an Array Using Character Classes
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (12)
As of 2014-12-22 14:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (119 votes), past polls