sweetblood has asked for the wisdom of the Perl Monks concerning the following question:
open(FI, "<", $i_file) or die "Unable to open $i_file: $!"; while (sysread(FI, $_, 2 ** 16)){ if (/$n_delim/){ print "Delimiter: $n_delim already in $i_file\n"; exit 2; } }
Thanks in advance!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex problem with metachars
by shenme (Priest) on Nov 07, 2003 at 18:04 UTC | |
by sweetblood (Prior) on Nov 07, 2003 at 18:33 UTC | |
by sgifford (Prior) on Nov 07, 2003 at 18:47 UTC | |
by tedrek (Pilgrim) on Nov 07, 2003 at 18:53 UTC | |
by sweetblood (Prior) on Nov 07, 2003 at 19:21 UTC | |
|
Re: regex problem with metachars
by ptkdb (Monk) on Nov 07, 2003 at 18:07 UTC | |
|
Re: regex problem with metachars
by injunjoel (Priest) on Nov 08, 2003 at 01:43 UTC |