Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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;


Comment on Re: Array shortcut
Download Code

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 studying the Monastery: (5)
As of 2014-08-01 02:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (256 votes), past polls