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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> wrote:

> ($volume,$directories,$file) = 
> File::Spec<http://perldoc.perl.org/File/Spec.html>->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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to