Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Declaring an Array Using Character Classes

by McA (Curate)
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 meditating upon the Monastery: (4)
As of 2014-09-30 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (385 votes), past polls