I see Perl scripts using -e
, for example unless -e
I understand the unless
loop, but not the -e
part. An explanation would be nice. When should -e
be used?
It's to check if a file exists.
http://perldoc.perl.org/functions/-X.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With