in reply to Re: A problem with tie
in thread A problem with tie

Wish it was but if you add some sort of flag to the die statements you still crash on the 'tie':
C:>test Uncaught exception from user code: [tie]Couldn't open C:/Perl/site/lib/Chess/PGN/db/ECO: No such +file or directory at C:\Perl_Dev\Openings for Russ\test.pl line 19

--hsm

"Never try to teach a pig to sing...it wastes your time and it annoys the pig."

Replies are listed 'Best First'.
Re^3: A problem with tie
by fizbin (Chaplain) on Mar 05, 2005 at 14:15 UTC
    I suggest that you update the top node to use different messages for the "open" die and the "tie" die. Something as simple as changing "Couldn't open" to "Couldn't tie". Also, you might want to add a message after the close statement to show explicitly that you're getting past that stage.

    Some people may go through your code to find which die is at line 19, but clearly the first few posters here didn't. It's all about helping people highlight what's going wrong. (Though I think that my reply elsewhere answers what's going wrong)

    -- @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/; map{y/X_/\n /;print}map{pop@$_}@/for@/