On Mon, 04 Apr 2005 21:42:36 +1000 [EMAIL PROTECTED] wrote:
> Sorry, I should have included the text file in my original message. It > simply contains at this stage > > $File1.txt$ > $File2.txt$ > $File3.txt$ > $File4.txt$ > $File5.txt$ well, your line, $list1 = @rawtext; ( using the above as list.txt) means $list1 is the number of lines in @rawtext which is 5. Then you want to go and split that value, 5 on non existant $ delimiters. So the next question is "What are you expecting from your split operation? > D:\My Documents\Perl>aaaa.pl > Global symbol "@files1to5" requires explicit package name at D:\My > Documents\Per > l\aaaa.pl line 7. > Global symbol "$list1" requires explicit package name at D:\My > Documents\Perl\aa > aa.pl line 8. You actually need to explore the usage of strict. It sort of makes global or local variables and every variable must be so assigned by using 'my' for the most part. Have a look at http://www.perl.com/pub/a/2001/01/begperl6.html#use%20strict as a starter. However if you don't quite understand it, not using it will not be the end of the world. Owen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>