Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: array to string conversion.

by choroba (Cardinal)
on Dec 09, 2014 at 15:28 UTC ( [id://1109754]=note: print w/replies, xml ) Need Help??


in reply to array to string conversion.

qw() creates a list of strings. [...] makes it an anonymous array, i.e. an array reference. So, for @list1 and @list2, you can just
my $arr1 = \@list1; my $arr2 = \@list2;

or, if you don't want to work directly with the lists, copy them:

my $arr1 = [ @list1 ]; my $arr2 = [ @list2 ];
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-03-28 11:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found