in reply to A problem with tie

Why are you saying it's the "tie"? Looks like the open TEST to me.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: A problem with tie
by hsmyers (Canon) on Mar 04, 2005 at 22:57 UTC
    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."
      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@/