Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Clubbing array elements together:

by Athanasius (Canon)
on Jan 29, 2013 at 11:40 UTC ( #1015866=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl
    use Modern::Perl;
    ...
    
    dd @array1;
    dd @array2;
    
  2. or download this
    21:38 >perl 508_SoPW.pl
    (
    ...
    ("abcdefgh", "jklmnopq")
    
    21:38 >
    
  3. or download this
    map { $_ // "\0" } @array1
    
  4. or download this
    map { $_ || "\0" } @array1
    
  5. or download this
    map { $_ eq '' ? "\0" : $_ } @array1
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2016-09-28 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (526 votes). Check out past polls.