[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: Why $@ makes me cry (was Re: Generic system() replacements)
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;
- References to:
-
Paul Fenwick <pjf@perltraining.com.au>
"David Golden" <xdaveg@gmail.com>
Paul Fenwick <pjf@perltraining.com.au>
"Dr.Ruud" <rvtol+news@isolution.nl>
Paul Fenwick <pjf@perltraining.com.au>
Aristotle Pagaltzis <pagaltzis@gmx.de>
Paul Fenwick <pjf@perltraining.com.au>
"David Nicol" <davidnicol@gmail.com>
Paul Fenwick <pjf@perltraining.com.au>
Bram <p5p@perl.wizbit.be>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]