Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by tybalt89 (Monsignor)
on Nov 09, 2021 at 18:38 UTC ( [id://11138640]=note: print w/replies, xml ) Need Help??


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

Wrong var.

perl -Mstrict -we 'eval q(x=3) or die "err $@"'

Outputs:

err Can't modify constant item in scalar assignment at (eval 1) line 1 +, at EOF Bareword "x" not allowed while "strict subs" in use at (eval 1) line 1 +.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-26 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found