krujos has asked for the wisdom of the Perl Monks concerning the following question:
this is my input file well part of it. It all appears on one line in the file.And yes the person in the file is me and I am not putting some poor guys deal online....while (defined(<>)) { chomp $_; ($name,$status,$class,$major,$po,$phone,$advisor,$email)= / +(\w+).*(\w+)\W\W*(\w+)\W\W*(\w+)\W\W*(\w+)\W\W*(\w+)\W\W*(\w+)\W\W+(\ +w+)\W+/; print "$name\n"; write OUTPUT; } close (OUTPUT) || die "cant close $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do i get the variables to actually get in here....
by wog (Curate) on Nov 07, 2001 at 02:40 UTC | |
by krujos (Curate) on Nov 07, 2001 at 02:53 UTC | |
|
Re: How do i get the variables to actually get in here....
by dragonchild (Archbishop) on Nov 07, 2001 at 02:34 UTC | |
|
Re: How do i get the variables to actually get in here....
by runrig (Abbot) on Nov 07, 2001 at 02:33 UTC | |
|
variable number of fields
by pike (Monk) on Nov 07, 2001 at 13:58 UTC | |
|
Re: How do i get the variables to actually get in here....
by krujos (Curate) on Nov 07, 2001 at 02:30 UTC | |
|
Re: How do i get the variables to actually get in here....
by blackmateria (Chaplain) on Nov 07, 2001 at 02:40 UTC | |
by dragonchild (Archbishop) on Nov 07, 2001 at 02:55 UTC |