Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Joining Two Elements of an Array. Little Help Please.

by toolic (Chancellor)
on Sep 27, 2012 at 18:07 UTC ( #996057=note: print w/ replies, xml ) Need Help??


in reply to Joining Two Elements of an Array. Little Help Please.

Use strict (Tip #1 from the Basic debugging checklist)

Global symbol "@listofItems" requires explicit package name at

@listOfItems is different from @listofItems (lower-case "o"). Try:

push( my @array1, $listOfItems[0] ); push( my @array2, $listOfItems[1] ); push( my @array3, $listOfItems[2] );


Comment on Re: Joining Two Elements of an Array. Little Help Please.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2014-10-22 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (118 votes), past polls