Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: using basename on a list of filesnames

by 1nickt (Canon)
on Nov 13, 2019 at 03:51 UTC ( [id://11108608]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -MFile::Basename -wE 'say basename("foo.psd",".psd")'
    foo
    
  2. or download this
    $ perl -MFile::Basename -wE 'say basename(undef,".psd")'
    Use of uninitialized value $_[0] in substitution (s///) at /Users/1nic
    +kt/perl5/perlbrew/perls/perl-5.30.0/lib/5.30.0/File/Basename.pm line 
    +341.
    fileparse(): need a valid pathname at -e line 1.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-23 16:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found