BEGIN { if ($] < 5.007003) { warn "$0 requires Perl v5.7.3 or later.\n"; exit; } unless (@ARGV) { warn "Usage: $0 string [string ...]\n"; exit; } }
I'm intrigued as to why you would warn and then immediately exit instead of just die. eg.
BEGIN { die "$0 requires Perl v5.7.3 or later.\n" if $] < 5.007003; die "Usage: $0 string [string ...]\n" unless @ARGV; }
Please enlighten me?
🦛
In reply to Re: uparse - Parse Unicode strings
by hippo
in thread uparse - Parse Unicode strings
by kcott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |