POSIX:_exit($status)

Paul LeoNerd Evans leonerd at leonerd.org.uk
Mon Oct 6 20:12:20 BST 2008


On Mon, 6 Oct 2008 19:24:02 +0100
Minty <mintywalker at gmail.com> wrote:

> I'm wondering if there are other things I need to worry about when
> using the POSIX _exit?
> 
> What clever things does Perl's exit do that I won't get?

I can't recall the portability issues (eg. MSWin32), but an interesting
alternative if you don't mind the performance being sub-optimal might
also be

  exec( $^X, "-e", "exit $status" );

-- 
Paul "LeoNerd" Evans

leonerd at leonerd.org.uk
ICQ# 4135350       |  Registered Linux# 179460
http://www.leonerd.org.uk/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://london.pm.org/pipermail/london.pm/attachments/20081006/2cc3954e/signature.pgp


More information about the london.pm mailing list