Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Should I worry about "Inappropriate ioctl for device"?

by choroba (Archbishop)
on Aug 07, 2020 at 14:34 UTC ( #11120471=note: print w/replies, xml ) Need Help??


in reply to Re^2: Should I worry about "Inappropriate ioctl for device"?
in thread Should I worry about "Inappropriate ioctl for device"?

If you use it just in the messages coming from die or warn, it's confusing, but not critical. Basing the program flow on the value would be a critical problem, though:
... die $! if $!; # Can stop your program for no real reason.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^4: Should I worry about "Inappropriate ioctl for device"?
by Lady_Aleena (Curate) on Aug 07, 2020 at 23:18 UTC

    Thank you for explaining this to me. I have removed the confusing use of $! from the code above. I will look at my other uses of it as I come across it in my code to make sure it makes sense where it is.

    Have a nice day!

    My OS is Debian 10 (Buster); my perl versions are 5.28.1 local and 5.16.3 or 5.30.0 on web host depending on the shebang.

    No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
    Lady Aleena

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2021-10-19 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (76 votes). Check out past polls.

    Notices?