in reply to Re: Break perl foreach loop
in thread Break perl foreach loop
In the section
if $x begins with a single word-character followed by whitespace, $x is set to an empty string. However, all of the if's in the block following if ( $key eq 'Data' ), which is inside the foreach loop, are looking for a non-empty value of $x.elsif ( $x =~ /[^\w\s]/ ) { $x = ""; }
Also, in the section
did you intend to say $x !~ m/^Patient/ instead?if ( ( $x !~ /^\d\d\/\d\d\/\d\d/ ) && ( $x != "Patient" ) )
--
Your left-hand veeblefetzer is calibrated to the wrong frammistan coefficient. Pass me that finklegruber.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Break perl foreach loop
by pvecchio (Initiate) on Mar 03, 2009 at 18:34 UTC |