Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Merging of arrays with space

by vinoth.ree (Monsignor)
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1037129]
help
Chatterbox?
[Lady_Aleena]: I'm glad I've sort of learned command line grep so I can find where and how I've used this sub.
[Lady_Aleena]: Having to rewrite some parts of my site for mobile devices is such a pain in the butt.
[shmem]: Lady_Aleena: what editor are you using, on what platform?
[Lady_Aleena]: shmem, geany on Debian jessie.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2017-04-27 12:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (505 votes). Check out past polls.