Re: Pulling file name from path

2011-06-09 Thread Shawn H Corey
On 11-06-09 11:42 AM, sono...@fannullone.us wrote: On Jun 9, 2011, at 7:52 AM, Shawn H Corey wrote: Use File::Spec and File::Basename together. From what I read, I thought they did the same thing, but from your post it appears that there may be differences. What's the advantage in

Re: Pulling file name from path

2011-06-09 Thread sono-io
On Jun 9, 2011, at 7:52 AM, Shawn H Corey wrote: > Use File::Spec and File::Basename together. From what I read, I thought they did the same thing, but from your post it appears that there may be differences. What's the advantage in using both instead of one or the other? Are they not

Re: Pulling file name from path

2011-06-09 Thread Shawn H Corey
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/sq