Re: code doesn't work

2001-07-29 Thread Michael Fowler
;>file"); #append mode open(TEMP, "+ COLLINEAU Franck FTRD/DMI/TAM wrote: > > > > this code doesn't work: > > > > @temp=; > > $temp[2]=""; > > $temp[3]=""; > > $temp[4]="";

Re: code doesn't work

2001-07-28 Thread Akshay Arora
f you are trying to write to a 2nd file, use a different file handle open(TEMP,">file"); #append mode @temp = ; ... print TEMP2 @temp; #poor use of variable all around, but you get the point. -Akshay COLLINEAU Franck FTRD/DMI/TAM wrote: > > this code doesn't work: > &

Re: code doesn't work

2001-07-27 Thread Jos I. Boumans
ata furthermore make sure you open your file handle with: open FH, "+>thefile.txt" to have both read and write access, since you're both reading AND writing to the file in your code. hth Jos Boumans > this code doesn't work: > > @temp=; > $temp[2]=""; >

code doesn't work

2001-07-27 Thread COLLINEAU Franck FTRD/DMI/TAM
this code doesn't work: @temp=; $temp[2]=""; $temp[3]=""; $temp[4]=""; $temp[5]=""; print TEMP @temp; The error message is "Use of uninitialized value in print at 01_info.pl line 25, line 1."

RE: code doesn't work

2001-07-26 Thread Mooney Christophe-CMOONEY1
i think you want to use 'unless' instead of 'until'. also, take advantage of $_'s magic in your print statement: print TEMP unless /ancre/; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: code doesn't work

2001-07-26 Thread Bob Showalter
> -Original Message- > From: COLLINEAU Franck FTRD/DMI/TAM > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 26, 2001 11:12 AM > To: Perl (E-mail) > Subject: code doesn't work > > > Hi, > > Can anybody tell me why this code doesn't wor

Re: code doesn't work

2001-07-26 Thread Brett W. McCoy
On Thu, 26 Jul 2001, COLLINEAU Franck FTRD/DMI/TAM wrote: > Can anybody tell me why this code doesn't work ? > > #!/usr/bin/perl -w > > open(FICHIER,"rdn1.html"); > open (TEMP,">>temp.html"); > while() > { > print TEMP $_ until

code doesn't work

2001-07-26 Thread COLLINEAU Franck FTRD/DMI/TAM
Hi, Can anybody tell me why this code doesn't work ? #!/usr/bin/perl -w open(FICHIER,"rdn1.html"); open (TEMP,">>temp.html"); while() { print TEMP $_ until ($_ =~m/ancre/); } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]