in reply to Re: uparse - Parse Unicode strings
in thread uparse - Parse Unicode strings

With my original code, the messages look like this:

$ uparse /home/ken/local/bin/uparse requires Perl v5.7.3 or later. $ uparse Usage: /home/ken/local/bin/uparse string [string ...]

With your suggestion, the messages look like this:

$ uparse /home/ken/local/bin/uparse requires Perl v5.7.3 or later. BEGIN failed--compilation aborted at /home/ken/local/bin/uparse line 1 +5. $ uparse Usage: /home/ken/local/bin/uparse string [string ...] BEGIN failed--compilation aborted at /home/ken/local/bin/uparse line 1 +5.

I didn't want the "BEGIN failed--compilation aborted at ..." lines.

— Ken

Replies are listed 'Best First'.
Re^3: uparse - Parse Unicode strings
by hippo (Archbishop) on Nov 18, 2023 at 14:47 UTC

    Thanks - I understand now. It's for neatness of output (well, stderr really) and is only an issue because of the BEGIN block which itself is necessary for the version check to fire before we hit newer syntax/features.


    🦛