in reply to Re^2: Newbie question
in thread Newbie question

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

my @digits = /\d/aag;

🦛

Replies are listed 'Best First'.
Re^4: Newbie question
by oldB51 (Sexton) on Aug 23, 2022 at 16:06 UTC

    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.