in reply to Re^2: If condition failing..
in thread If condition failing..
I didn't follow the discussion in the original thread, so maybe I'm missing something... but why don't you store the version as the value of the hash entries?
while (<IN>) { # first list next unless ( m:(.+?)#(\d+)$: ); $pathname_versions{$1} = $2; }
In this case you could later simply do (where $pathname_versions{$1} retrieves the corresponding version from the first list)
while (<IN>) { # second list next unless ( m:(.+?)#(\d+)$: ); ... if ( $pathname_versions{$1} < $2 ) { ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: If condition failing..
by perl_mystery (Beadle) on Dec 13, 2010 at 01:49 UTC | |
by Anonyrnous Monk (Hermit) on Dec 13, 2010 at 02:08 UTC |