Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: eval '...'; die "err: $!"

by haukex (Bishop)
on Nov 10, 2021 at 11:11 UTC ( #11138678=note: print w/replies, xml ) Need Help??


in reply to Re: eval '...'; die "err: $!"
in thread eval '...'; die "err: $!"

You might have cribbed that from an idiom, like: open my $fh, q{<}, $file || die $!

That's not an idiom, it's wrong because of incorrect precedence: "open" Best Practices.

Also, just in case you're implying otherwise, eval or die is a decent approach to work around Bug in eval in pre-5.14.

Update: It is uncool to update a node in a way that renders replies confusing or meaningless. Mark your updates. Update 2: Now fixed.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11138678]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2022-01-19 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?