in reply to uparse - Parse Unicode strings
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?
🦛
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: uparse - Parse Unicode strings
by kcott (Archbishop) on Nov 18, 2023 at 13:40 UTC | |
by hippo (Archbishop) on Nov 18, 2023 at 14:47 UTC |