Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
open (FH, "filtered.txt"); open (IN, "information"); while (<IN>) { chomp $_; /images\/(\d+)/; $sample = $1; print "$sample\n"; while (<FH>){ /(\d+)/; print "loop\n"; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: loop problem
by davidrw (Prior) on Jun 14, 2005 at 14:24 UTC | |
by Anonymous Monk on Jun 14, 2005 at 14:33 UTC | |
|
Re: loop problem
by tlm (Prior) on Jun 14, 2005 at 14:22 UTC | |
|
Re: loop problem
by Transient (Hermit) on Jun 14, 2005 at 14:20 UTC | |
by Limbic~Region (Chancellor) on Jun 14, 2005 at 14:22 UTC | |
|
Re: loop problem
by Anonymous Monk on Jun 14, 2005 at 14:19 UTC | |
by derby (Abbot) on Jun 14, 2005 at 14:24 UTC |