Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Create a list from an Array

by Athanasius (Abbot)
on Jul 16, 2013 at 12:55 UTC ( #1044586=note: print w/ replies, xml ) Need Help??


in reply to Create a list from an Arrray

The expression qw(@hash_tags) does not interpolate an array variable, it merely returns the literal string '@hash_tags'. I think you want:

@USERlist = @hash_tags; ... @STATIClist = @tags;

and the code should work as expected.

Update: See Quote and Quote like Operators.

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,


Comment on Re: Create a list from an Array
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2015-07-04 18:32 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 (60 votes), past polls