>>>>> "PK" == Parag Kalra <[email protected]> writes:
PK> #!/usr/bin/perl
PK> use strict;
PK> use warnings;
PK> my @ar = ("rahul","patil");
PK> my @ar1 = ("nitin");
PK> my @ar4;
PK> push @ar4, (@ar, @ar1);
PK> print "@ar4";
it is nice that you are trying to help but your code can be
better. there is no need for the push call:
my @ar4 = ( @ar, @ar1 ) ;
uri
--
Uri Guttman ------ [email protected] -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/