Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
what is the best way to approach the second line? Thanks$file =<stdin>; chomp($file); if (m/(\d+)\|\Q$file\E$/x) { do something} but if match (/^aaa\[/) {die};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: unless/if
by pajout (Curate) on Oct 11, 2005 at 09:28 UTC | |
|
Re: unless/if
by blazar (Canon) on Oct 11, 2005 at 09:34 UTC | |
|
Re: unless/if
by ysth (Canon) on Oct 11, 2005 at 16:18 UTC | |
|
Re: unless/if
by Anonymous Monk on Oct 11, 2005 at 10:58 UTC | |
|
Re: unless/if
by Moron (Curate) on Oct 11, 2005 at 16:05 UTC | |
by sth (Priest) on Oct 11, 2005 at 18:41 UTC | |
by Moron (Curate) on Oct 12, 2005 at 08:17 UTC | |
by sgifford (Prior) on Oct 12, 2005 at 15:49 UTC | |
by Moron (Curate) on Oct 18, 2005 at 12:07 UTC | |
by sth (Priest) on Oct 12, 2005 at 16:58 UTC | |
by blazar (Canon) on Oct 13, 2005 at 08:34 UTC |