--- 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
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
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,"&
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
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
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
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
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
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
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:
>
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
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
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
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
14 matches
Mail list logo