in reply to Re: Newbie question
in thread Newbie question

Fantastic re no warning numeric. Works fine without the abs.

Replies are listed 'Best First'.
Re^3: Newbie question
by hippo (Archbishop) on Aug 23, 2022 at 15:31 UTC

    If you don't want to use abs and you don't want the warnings, there's always

    my @digits = /\d/aag;

    🦛

      Yes interesting. The regular expression avoids the use of split and abs. Regular expressions are someway down my learning list so I must simply note it for the future. Clearly Perl has many attack lines.