Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Merging of arrays with space

by vinoth.ree (Prior)
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 scrutinizing the Monastery: (15)
As of 2015-07-07 15:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (90 votes), past polls