in reply to Unable to run or troubleshoot a script...

I agree with Grandfather & anonymous monk, that's awful code. You might want to think about another book.
Also, use 'or die "...$!\n";' not '|| die ...'.
Note that in the lines:
# here's a cheaper way # @tlist = <TDATA>;
you'll still need to chomp the array before using it

Cheers
chris

Replies are listed 'Best First'.
Re^2: Unable to run or troubleshoot a script...
by cgmd (Beadle) on Jun 26, 2007 at 12:22 UTC
    chrism01 wrote:

    You might want to think about another book.

    I'm currently using 4 books:

    Perl Workbook - Lowe
    Beginning Perl - Lee
    Learning Perl - Schwartz
    Intermediate Perl -Schwartz

    I use the Lowe book because of the multitude of situational problems and suggested code solutions it presents. It's regrettable that some of the code examples are somewhat lacking. Is there an additional interactive book I should consider?

    Thanks for the comments!