develooper Front page | perl.perl5.porters | Postings from June 2008

Re: Why $@ makes me cry (was Re: Generic system() replacements)

Thread Previous | Thread Next
From:
Juerd Waalboer
Date:
June 29, 2008 08:47
Subject:
Re: Why $@ makes me cry (was Re: Generic system() replacements)
Message ID:
20080629154731.GS27872@c4.convolution.nl
Bram skribis 2008-06-21 11:08 (+0200):
> Where the last two could be used like:
>   eval { die "foo" }, $my_err_variable;
> which would place "foo" in $my_err_variable and leave $@ alone.

Not compatible with current syntax in two ways:

1. It's already valid syntax: say { eval 4 }, 2;  # 42
2. Other BLOCK EXPR things have no comma in Perl 5.

Removing the comma solves both.
-- 
Met vriendelijke groet,  Kind regards,  Korajn salutojn,

  Juerd Waalboer:  Perl hacker  <#####@juerd.nl>  <http://juerd.nl/sig>
  Convolution:     ICT solutions and consultancy <sales@convolution.nl>
1;

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About