Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Declaring an Array Using Character Classes

by McA (Deacon)
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 browsing the Monastery: (6)
As of 2014-07-24 06:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (158 votes), past polls