Re: Adding a line in a file inside many directories
- From: Gunnar Hjalmarsson <noreply@xxxxxxxxx>
- Date: Fri, 29 Jun 2007 07:46:58 +0200
Gunnar Hjalmarsson wrote:
Ved wrote:
foreach my $file_list (@rgstr) {
print $file_list ; #printing list of dir
open (dirIN, '$file_list/kat.s') or die "Cannot open 'File.txt' $!";
#This is not working
open (dirIN, "$file_list/kat.s") or ...
In addition to the double-quotes, you first need to:
chomp $file_list;
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.
- References:
- Adding a line in a file inside many directories
- From: Ved
- Re: Adding a line in a file inside many directories
- From: Gunnar Hjalmarsson
- Adding a line in a file inside many directories
- Prev by Date: Re: FAQ 1.6 What is perl6?
- Next by Date: FAQ 2.13 What mailing lists are there for Perl?
- Previous by thread: Re: Adding a line in a file inside many directories
- Next by thread: Re: Adding a line in a file inside many directories
- Index(es):