BigJoe has asked for the wisdom of the Perl Monks concerning the following question:
It is probably very simple I just can not see it. I have tried the $/ but that evaluates true every time. If I use single quotes it is always false. Any ideas or a point in the right direction would greatly be appreciated.while (<FILE>) { for my $myword (split){ if ($/ eq "\n") { #do stuff } #do more stuff } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A splitting question
by swiftone (Curate) on Nov 15, 2000 at 02:37 UTC | |
|
RE: A splitting question
by little (Curate) on Nov 15, 2000 at 02:42 UTC | |
|
RE: A splitting question
by japhy (Canon) on Nov 15, 2000 at 03:27 UTC | |
|
RE: A splitting question
by BigJoe (Curate) on Nov 15, 2000 at 02:47 UTC | |
by swiftone (Curate) on Nov 15, 2000 at 02:52 UTC | |
by jeroenes (Priest) on Nov 15, 2000 at 17:15 UTC | |
by BigJoe (Curate) on Nov 15, 2000 at 03:04 UTC | |
by little (Curate) on Nov 15, 2000 at 03:11 UTC |