in reply to Segmentation fault at exit on Solaris 5.6.1 if require Tk instead of use

The use statement is equivalent to
BEGIN { require Tk; Tk->import; }
I'm not sure why this would make Tk break, but I imagine it might have something to do with compile-time magic (where segfaults have a greater potential to occur).
HTH

_________
broquaint

  • Comment on Re: Segmentation fault at exit on Solaris 5.6.1 if require Tk instead of use
  • Download Code

Replies are listed 'Best First'.
Re: Re: Segmentation fault at exit on Solaris 5.6.1 if require Tk instead of use
by tommyw (Hermit) on Jun 13, 2003 at 10:02 UTC

    Yes, I thought that use was supposed to be the same as require and import, as frequently mentioned. (Yes, I did se use Super Search)

    Ah. Progress. If I put the require inside a BEGIN block, it does work "properly". In that it's the same on both boxes, and importantly, doesn't seg fault on the Solaris machine.

    --
    Tommy
    Too stupid to live.
    Too stubborn to die.