Re: misunderstanding with the function split

2006-07-17 Thread John W. Krahn
sfantar wrote: > John W. Krahn a écrit : >> >> #!/usr/local/bin/perl >> use strict; >> use warnings; >> >> my @authors; >> my @titles; >> >> >> for my $file ( @ARGV ) { >> $file =~ tr/ /_/; >> >> my ( $author, $title ) = split /-/, $file; >> >> push @authors, $author; >> push @title

Re: misunderstanding with the function split

2006-07-17 Thread sfantar
John W. Krahn a écrit : sfantar wrote: Hello everyone Hello, I would like to be able to print the songs'titles according to the author. The format of the songs are as follow : Freda Payne - In motion.mp3 Sylvester - Was it something that i said.mp3 George Benson & A. Franklin - Love All The

Re: misunderstanding with the function split

2006-07-17 Thread John W. Krahn
sfantar wrote: > Hello everyone Hello, > I would like to be able to print the songs'titles according to the author. > The format of the songs are as follow : > > Freda Payne - In motion.mp3 > Sylvester - Was it something that i said.mp3 > George Benson & A. Franklin - Love All The Hurt Away.mp3