List Info

Thread: How can I get by the first line of a cvs file or say go next in the read file?




How can I get by the first line of a cvs file or say go next in the read file?
country flaguser name
United States
2007-03-02 13:49:57
Hi,
 I have a header in a cvs file that I do not want to process
when 
reading in the file to an array.

How can I get by this first line?
I put into the code if the ID is not numeric then do not
process it 
but this deos not move to the next line in the array (file).
How can 
I do that or start from the second line of the array or (cvs
file) 
or?

May cvs file:

"ID","Last Name","First
Name","Email"
"100043094","Long4","Paul4,longps4<
img src="/img/at.gif" align="middle" border="0"
alt="">hotmail.com"

My code:

#******* if the UserID is numeric then process if not the do

nothing*************
if (($InstructorID =~ /^d+$/) && ($InstructorID =~
/^d+$/)) { 
print "$InstructorID <BR>";

then the processing here……

} #end  if the CourseNumber is numeric

Thank you,
Chip




------------------------ Yahoo! Groups Sponsor
--------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/ndFolB/TM

------------------------------------------------------------
--------~-> 

Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://g
roups.yahoo.com/group/perl-beginner/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http
://groups.yahoo.com/group/perl-beginner/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:perl-beginner-digest@yahoogroups.com 
    mailto:perl-beginner-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    perl-beginner-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )