`cmd...` 和system类似, 只有在子进程结束后才会返回,可以考虑用fork+exec

2010/4/12 WENFENG LIU <[email protected]>

>
> 我写了个简单的gui应用,下面是其中的一段:
> my $file_f = $mw->Frame(-borderwidth => 2, -relief =>
> 'groove')->pack(-side=>'right',-fill=>'both');
>
> $file_f->Label( -text => 'Other' )->pack(-fill=>'x', -side=>'top');
>
> $file_f->Button(
>     -text => 'param',
>     -command => sub { `notepad ../_vimrc` }
>
> )->pack(-fill=>'x', -expand=>'both');
>
>
> 当按下button后,notepad被打开,如果这时候gui就没有响应了,只有notepad关闭后才能恢复。请问有什么办法解决吗,即一个任务还没完成,还可以进行其他操作。
>
>
>
> Wfg LIU
>
> thanks
>
>
>
> ------------------------------
> Hotmail: Powerful Free email with security by Microsoft. Get it 
> now.<https://signup.live.com/signup.aspx?id=60969>
>
> --
> 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。
> 要向此网上论坛发帖,请发送电子邮件至 [email protected]。
> 要取消订阅此网上论坛,请发送电子邮件至 
> [email protected]<perlchina%[email protected]>
> 。
> 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
>

-- 
您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。
要向此网上论坛发帖,请发送电子邮件至 [email protected]。
要取消订阅此网上论坛,请发送电子邮件至 [email protected]。
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。

回复