Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Looping through an Array

by vinoth.ree (Prior)
on Jan 11, 2013 at 13:25 UTC ( #1012888=note: print w/ replies, xml ) Need Help??


in reply to Looping through an Array

Have you included

use strict; use warnings;

There is no array with @colnames, so its printing 0, You have $colnames variable which has the array reference, you need to dereference it like

print "A size:" . @$colnames . "\n";


Comment on Re: Looping through 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://1012888]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (15)
As of 2015-07-03 12:24 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 (53 votes), past polls