On 04/03/2011 16:48, Téssio Fechine wrote:
>
>> De: Shawn H Corey wrote:
>
>> my ( $file, $dir, $sufix ) = fileparse( $item, %sufixTable );
>>
>> I don't think fileparse takes a hash as the final
>> arguments. It would be converted to an array and both
>> the keys and the values used.
>>
>>
Thanks for the help!
> De: Shawn H Corey
> Assunto: Re: File::Basename problem
> Para: beginners@perl.org
> Data: Sexta-feira, 4 de Março de 2011, 13:22
> On 11-03-04 11:14 AM, Téssio Fechine
> wrote:
> > my ( $file, $dir, $sufix ) =
> fileparse( $item, %sufixTable );
On 11-03-04 11:14 AM, Téssio Fechine wrote:
my ( $file, $dir, $sufix ) = fileparse( $item, %sufixTable );
I don't think fileparse takes a hash as the final arguments. It would
be converted to an array and both the keys and the values used.
Also, from `perldoc File::basename`:
If @s
Hello!
I'm trying to use File::Basename, but it is not behaving well:
tessio@pacman:~/tmp/ASAP$ ls
book.div book.tex erotic.div erotic.tex erotyc.tex problem source.a
source.c source.o
tessio@pacman:~/tmp/ASAP$ cat problem
use 5.010;
use strict;
use warnings;
use File::Basename;