RE: File::Spec->splitpath Just found that. I suppose I could use it, then get the size of the array and use the last indices? Is there a cleaner way to do it?
Thanks!
jlc

-----Original Message-----
From: tom.phoenix@gmail.com [mailto:tom.phoenix@gmail.com] On Behalf Of Tom Phoenix
Sent: Wednesday, July 04, 2007 1:38 PM
To: Joseph L. Casale
Cc: beginners@perl.org
Subject: Re: File::Spec->splitpath

On 7/4/07, Joseph L. Casale  wrote:

> ($volume,$directories,$file) = File::Spec->splitpath( $path );
>
> I am leveraging this fine, but would like to shove the last directory from the path in $directories into a new var.
> Is there a function from this module that can do this cleanly?

Do you mean splitdir?

Hope this helps!

--Tom Phoenx
Stonehenge Perl Training





-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/



