[NTLUG:Discuss] Perl pattern matching problem
brian@pongonova.net
brian at pongonova.net
Mon May 1 22:04:06 CDT 2006
Walk through the code with the perl debugger (perl -d). Verify the
values of each variable as it's assigned. We can only guess what
<LIST> is, and have no way of verifying what's in @Model with the code
you've presented.
I once had someone tell me that real men don't use debuggers. Don't
fall for that trap.
--Brian
On Mon, May 01, 2006 at 10:51:13PM -0500, Douglas Scott wrote:
> I have an odd problem with some Perl code.
>
> I have two small text files. One is a list store numbers and quantities,
> separated by tabs. The other contains 2 lines of text that contains patterns
> that I wish to replace with the numbers from the other file. I have the
> small model file loaded into the array @Model.
More information about the Discuss
mailing list