in reply to Re^2: 5.10 shows uninitialized $@ warning
in thread 5.10 shows uninitialized $@ warning

Bad example

It was a perfectly fine example (in terms of the op's original conditions ;-)

Cheers,
Rob
  • Comment on Re^3: 5.10 shows uninitialized $@ warning

Replies are listed 'Best First'.
Re^4: 5.10 shows uninitialized $@ warning
by ikegami (Patriarch) on May 16, 2008 at 15:07 UTC

    Your code never gets to execute the eval, much less to using $@ afterwards, so you couldn't possibly get the a warning from using $@. That's like saying "I can't replicate the fact that you got 'foo' on the screen, but ignore the fact that I didn't actually call a print function."

      Your code never gets to execute the eval

      Bullshit - under 5.10 at least - and whether or not it gets executed under perl 5.8 is irrelevant in terms of the original post. (It's the 5.10 behaviour that the op is interested in.)

      Let's just agree to have our respective lawyers sort this out tomorrow.

      Cheers,
      Rob

        whether or not it gets executed under perl 5.8 is irrelevant in terms of the original post

        True. Forgot about that. A better example wouldn't be so confusing.

        There be only camels about