Good catch! When composing my test I initially had that line as
my $str = shift // '';
but the idea of doing the rest of the processing (however swift) against the empty string rankled so I opted for the short-circuit instead. Should have just left it well alone :-)
🦛
In reply to Re^3: Removing unwanted chars from filename.
by hippo
in thread Removing unwanted chars from filename.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |