in reply to Perl TK

You could try using the experimental (and very-easy-to-break, in my experience) pretend-fork of Win32 Perl.

But I'd just do something like:

if( @ARGV && $ARGV[0] eq "do_long_sub" ) { &long_sub(); exit( 0 ); } # ... $main->button( -text => "Start Long-Sub", -command => sub { system(1,$^X,$0,"do_long_sub") } )->pack;

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
Re: (tye)Re: Perl TK
by HamNRye (Monk) on May 10, 2001 at 01:34 UTC

    At this point I'm almost thinking it's easier to just have two different scripts.... That's ungodly... And here I was learning Perl TK so I could stop having all of my logic in Perl and my UI in TCL\TK.....

    Sigh...