in reply to Using lookaround with variables
Nothing to do with your question (more an initiation rite), but there are a few things you could tidy up in your code and save yourself some bother in the future:
First, always use strictures (use strict; use warnings;).
Next, use the three parameter version of open, use lexical file handles and check the result:
open my $inFile, '<', 'RegExTest.txt' or die "Failed to open RegExTest +.txt: $!\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using lookaround with variables
by mwunderlich (Initiate) on Dec 17, 2008 at 13:19 UTC | |
by mwunderlich (Initiate) on Dec 17, 2008 at 14:34 UTC | |
by GrandFather (Saint) on Dec 17, 2008 at 19:01 UTC | |
by mwunderlich (Initiate) on Dec 17, 2008 at 14:49 UTC |