Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Image rotation with GD: counter or clockwise? (updated)

by LanX (Saint)
on Feb 23, 2021 at 21:31 UTC ( [id://11128723]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Image rotation with GD: counter or clockwise?
in thread Image rotation with GD: counter or clockwise?

> so it will be stupid to pass 0

It's better not to expect software (or users) to be smart, even in a draft.°

> to my SSCE

why does an SSCCE even need defaults?

> // is available iirc since 5.14

defined or $#ARGV are older.*

FWIW: I don't support KGB's tone here, I'm just saying playing safe is easy here.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

°) I have similar discussion regularly with my clients:

  • "Who would ever do this?"
  • "Sigh ... Wait and see!"
Half a year later

  • "Who could have ever expected this?"
  • "Sigh ... No one! (and thanks for the salary)"
updates

*) BTW 5.10.0 https://perldoc.pl/perl5100delta#Defined-or-operator

Log In?
Username:
Password:

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

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

    No recent polls found