ostra has asked for the wisdom of the Perl Monks concerning the following question:
I am coding on a PC and learning about modules. What do you put for the $fullpath variable? See code
perl -w use strict; use warnings; use 5.014; use File::Basename; my $basename=basename($fullpath); my $dirname=dirname($fullpath); print "$basename"; print "\n\n"; print "$dirname";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Basename Module
by toolic (Bishop) on Feb 08, 2014 at 14:28 UTC | |
by ostra (Novice) on Feb 08, 2014 at 15:38 UTC | |
|
Re: Basename Module
by karlgoethebier (Abbot) on Feb 08, 2014 at 14:35 UTC | |
|
Re: Basename Module (use Path::Tiny)
by Anonymous Monk on Feb 09, 2014 at 00:10 UTC |