Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Array shortcut

by YuckFoo (Abbot)
on Jul 01, 2009 at 17:43 UTC ( #776518=note: print w/ replies, xml ) Need Help??


in reply to Array shortcut

I'd rather split single-quoted strings, easier to write (and read) than all the '',...',,'.. ,',' ,..', ', stuff. It's not like there is an endless supply of comma and quote.

#!/usr/bin/perl use strict; my @chars = ( split('', 'abcdefghijklmnopqrstuvwxyz'), split('', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'), split('', '0123456789!@#$%^&* '), ); print @chars;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2016-07-01 15:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (7 votes). Check out past polls.