in reply to Re: Is it there, or is it not?? Quirkiness with error handling.
in thread Is it there, or is it not?? Quirkiness with error handling.

That did the trick!

I got into a bad habit of using ampersands for every call to a sub when I first started learning Perl. I realize that its not always a good idea, especially in a case like this.

I nested that for lack of knowing better, put simply. Thanks for the advice, sorry about the confusion in my writeup.

And no, I didn't not want it to call everytime a line did not match. I was writing this in a hurry, and intern proved that patience pays off, cause had I been patient, I would not have had this problem!!

/me loves learning new stuff everyday, just wish I could spend more time learning more Perl!

--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--

perl -e '$a="3567"; $b=hex($a); printf("%2X\n",$a);'

  • Comment on Re: Re: Is it there, or is it not?? Quirkiness with error handling.

Replies are listed 'Best First'.
Re^3: Is it there, or is it not?? Quirkiness with error handling.
by Aristotle (Chancellor) on Jul 14, 2002 at 21:59 UTC
    Something I just thought of.. these oodles of "some string" x $repetition look rather ugly. Maybe you would profit from learning about Perl's format support? It lets you write report generation routines in a visually oriented way.

    Makeshifts last the longest.