Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: what is @$varname in perl

by Myrddin Wyllt (Hermit)
on Jul 03, 2014 at 14:37 UTC ( [id://1092181]=note: print w/replies, xml ) Need Help??


in reply to what is @$varname in perl

Not directly related to the reference / dereference question, but if your csv files do have header rows, your check on $count won't skip them, as you increment before you test (so $count will always be true). If you need to skip the headers, make $count local to the file loop (rather than global), and increment after the test.

Replies are listed 'Best First'.
Re^2: what is @$varname in perl
by sandy105 (Scribe) on Jul 04, 2014 at 06:05 UTC

    i have declared $count = -1 initially , so it does work

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found