Re: File::Basename problem

2011-03-04 Thread Rob Dixon
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. >> >>

Re: File::Basename problem

2011-03-04 Thread Téssio Fechine
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 );

Re: File::Basename problem

2011-03-04 Thread Shawn H Corey
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

File::Basename problem

2011-03-04 Thread Téssio Fechine
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;