On 11-06-09 10:46 AM, sono...@fannullone.us wrote:
Or is there a better way that I haven't run across yet? It needs to be
multi-platform.
Use File::Spec and File::Basename together. They offer platform
independence.
use File::Spec;
use File::Basename;
my $file_path = "../htdocs/_carts/sql/data/categories.tsv";
my ($volume, $directories, $file_name) =
File::Spec->splitpath($file_path);
my $filename = fileparse($file_name, qr/\.[^.]*/); # $filename =
customers
--
Just my 0.00000002 million dollars worth,
Shawn
Confusion is the first step of understanding.
Programming is as much about organization and communication
as it is about coding.
The secret to great software: Fail early & often.
Eliminate software piracy: use only FLOSS.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/