Re: 'use strict' and filehandles

2006-08-31 Thread Ted Fines
--- Original Message --- > Ted Fines wrote: > > Hi, > > Hello, > > > I'm running into a Cach-22 with 'use strict', and filehandles. > > > > I have a program which opens two log files at the beginning: > > open(INFLOG,">>$info

Re: 'use strict' and filehandles

2006-08-31 Thread John W. Krahn
Ted Fines wrote: > Hi, Hello, > I'm running into a Cach-22 with 'use strict', and filehandles. > > I have a program which opens two log files at the beginning: > open(INFLOG,">>$info_log") || die "Could not append to $info_log_file. > Qui

RE: 'use strict' and filehandles

2006-08-31 Thread Timothy Johnson
lto:[EMAIL PROTECTED] Sent: Thursday, August 31, 2006 12:17 PM To: beginners@perl.org Subject: 'use strict' and filehandles Hi, I'm running into a Cach-22 with 'use strict', and filehandles. I have a program which opens two log files at the beginning: open(INFLOG,"&

'use strict' and filehandles

2006-08-31 Thread Ted Fines
Hi, I'm running into a Cach-22 with 'use strict', and filehandles. I have a program which opens two log files at the beginning: open(INFLOG,">>$info_log") || die "Could not append to $info_log_file. Quitting.\n"; open(ERRLOG,">>$err

Re: use strict and filehandles

2004-01-22 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (B McKee) writes: >On Tuesday, January 20, 2004, at 10:34 AM, B McKee wrote: > >> Hi All, >> I'm having trouble understanding what use strict is trying to tell me. >> If I have run this program >...snipped >> open(MESSAGE, "$datafile") or die "Can

Re: use strict and filehandles

2004-01-21 Thread B McKee
On Tuesday, January 20, 2004, at 10:34 AM, B McKee wrote: Hi All, I'm having trouble understanding what use strict is trying to tell me. If I have run this program ...snipped open(MESSAGE, "$datafile") or die "Cannot open datafile: $!"; while (!eof(MESSAGE)) { $page = new CGI(MESSAGE); ...mor

Re: use strict and filehandles

2004-01-20 Thread Jan Eden
I had a similar problem passing a filehandle to a sub and learned that I had to use the typeglob instead. HTH, Jan B McKee wrote: >Hi All, >I'm having trouble understanding what use strict is trying to tell me. > >If I have run this program > >-CODE--- >#!/u

use strict and filehandles

2004-01-20 Thread B McKee
Hi All, I'm having trouble understanding what use strict is trying to tell me. If I have run this program -CODE--- #!/usr/bin/perl -wT # use warnings and turn on data tainting use CGI qw(:standard); $CGI::POST_MAX=1024 * 100; $CGI::DISABLE_UPLOADS = 1; use stric

Re: use strict and filehandles

2001-10-28 Thread Jan
Ah, ok, thats it, but by now I rewrote it with my $compu = new FileHandle, but I'm in rouble with getc or sysread operations on the handle. I'll put a commented working version on my hp: Jan-Kirchhoff.de asap. thanks for the help to everybody, Jan Am Sonntag, 28. Oktober 2001 04:12 schrieb [EMA

Re: use strict and filehandles

2001-10-27 Thread rich+ml
TED]> > To: [EMAIL PROTECTED] > Subject: use strict and filehandles > > Hi out there, > i just coded a little programm as an interface between a hardware interface > on the serial port and a database, but when i use strict, perl always makes > complaints like: >

Re: use strict and filehandles

2001-10-27 Thread Brett W. McCoy
On Sat, 27 Oct 2001, Jan wrote: > sub open > { > open("compu","+<$port") || die "opening $port failed: $!"; > system("stty 19200 -echo cstopb cbreak -parenb cs8 parodd < $port"); > compu->autoflush(1); > print "\nopened interface on port --> $port\n"; > } Where I am getting confused is how you a

Re: use strict and filehandles

2001-10-27 Thread Jan
Uh, ok, wait, let me catch a working version one of the versions I coded... dunno if it works how I want it to work, but produces the error... -- #!/usr/bin/perl use strict; use warnings; use IO::Handle; ### my $port; my $loop; my $start; my $reset; my $setdi

Re: use strict and filehandles

2001-10-27 Thread Brett W. McCoy
On Sat, 27 Oct 2001, Jan wrote: > i just coded a little programm as an interface between a hardware interface > on the serial port and a database, but when i use strict, perl always makes > complaints like: > > Unquoted string "iface" may clash with future reserved word at > iface2dbgeneric.pl li

use strict and filehandles

2001-10-27 Thread Jan
Hi out there, i just coded a little programm as an interface between a hardware interface on the serial port and a database, but when i use strict, perl always makes complaints like: Unquoted string "iface" may clash with future reserved word at iface2dbgeneric.pl line 274. iface is the fileh