Good point... I ran some tests and it looks like /|/ matches just about anything...what does /|/ mean?
----- Original Message ----- From: "Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> To: "Tanton Gibbs" <[EMAIL PROTECTED]> Cc: "Hughes, Andrew" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, May 10, 2002 3:36 PM Subject: Re: Text file manipulation > On May 10, Tanton Gibbs said: > > >while( <FILE> ) { # loop through the file, store current rec in $_ > > my @record = split(/|/,$_); # record[0] = lastname > > You need to split on /\|/, not /|/. > > -- > Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ > RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ > ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** > <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. > [ I'm looking for programming work. If you like my work, let me know. ] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]