Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Removing unwanted chars from filename.

by hippo (Archbishop)
on Oct 07, 2022 at 09:22 UTC ( [id://11147282]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Removing unwanted chars from filename.
in thread Removing unwanted chars from filename.

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 :-)


🦛

Replies are listed 'Best First'.
Re^4: Removing unwanted chars from filename.
by AnomalousMonk (Archbishop) on Oct 08, 2022 at 04:34 UTC

    First thought, best thought! :)


    Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11147282]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-06-20 18:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.