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

Re: Merging of arrays with space

by vinoth.ree (Parson)
on Jun 05, 2013 at 05:37 UTC ( #1037129=note: print w/ replies, xml ) Need Help??


in reply to Merging of arrays with space

Hi MynameisAchint

I tried the same method its works fine

use strict; use warnings; use Data::Dumper; my @arr1 = (1,23,'',45," ",4); my @arr2 = ("vinoth", " kumar", " ", 'vin' ); @arr1 = (@arr1,@arr2); print Dumper \@arr1
Output:
$VAR1 = 
          1,
          23,
          '',
          45,
          ' ',
          4,
          'vinoth',
          ' kumar',
          '  ',
          'vin'
        ;


All is well


Comment on Re: Merging of arrays with space
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-10-01 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (8 votes), past polls