Kredler Stefan wrote:
>
> there is another loop. The whole construction looks like this:
>
> for(@file1) {
> $_ =~ s/[\r]|[\n]//;#remove CR and DOS CR
[\r] and [\n] are a character class with a single character so the
brackets are not needed. The match isn't anchored and the globa
Nicola,
there is another loop. The whole construction looks like this:
for(@file1) {
$_ =~ s/[\r]|[\n]//;#remove CR and DOS CR
$_ =~ s/\"//g; #remove quotes
next if ($_ =~ /;;;|DATUM|GESAMT|ANZAHL/);
@raw=split /;/,$_;
if ( $raw[3]
On Wed, Jan 30, 2002 at 09:37:28AM -0800, John W. Krahn wrote:
> Stefan Kredler wrote:
> > ---8<
> > if ( $raw[3] eq ""){
> > while ( ($key, $value) = each %table ) {
> > if ($raw[2] =~ /$key/) {
> > $raw[3] = $value ;
> > last;
> > }
> > }
>
On Wed, Jan 30, 2002 at 05:48:14PM +0100, [EMAIL PROTECTED] wrote:
> Hi all,
>
> thanks to all in the group who really never stop helping.
> This group is really enjoyable. [This had to be said]
>
> Now.
> I'm running a while loop with a hash several times and I want to use the last
>statement
Stefan Kredler wrote:
>
> I'm running a while loop with a hash several times and I
> want to use the last statement to exit the loop on a match.
> works fine.
>
> Entering the next time the while loop is exited w/o finding
> the right match. It seems the last state on exiting is still
> preserve
Hi all,
thanks to all in the group who really never stop helping.
This group is really enjoyable. [This had to be said]
Now.
I'm running a while loop with a hash several times and I want to use the last
statement to exit the loop on a match.
works fine.
Entering the next time the while loop is