Weird perl thingies (errors?) - PLEASE help!

Weird perl thingies (errors?) - PLEASE help!

Post by Jason W. Pur » Sat, 22 Jun 1996 04:00:00

I dunno what's going on, but maybe it's perl or maybe it's my system.  
I'm not sure.

Anyway, I recently reformatted my hard drive and installed Red Hat Linux
v3.0.3 w/ kernel 1.2.13 ... it has both perl5.001 and perl4.036.

So after untarring my webspace, I've noticed a few oddities, most of
which I've narrowed down to my programming errors.  But one remains that
well ... remains a mystery. ;)

Here's a line that's part of it...

$GooberFile = $DBDir . "/" . $tempfile;
&debug( "GooberFile = $GooberFile\n" );

And in my debug log, I get:

And if I do this:

&debug( "GooberFile = " );
&debug( $GooberFile );
&debug( "\n" );

I get this:

GooberFile = /usr/local/etc/httpd/htdocs/Fishnet/Forum/Advice/data/temppost11

Weird, huh?  It's like the string scalars aren't working like they
should.  It gets even weirder:

I then use $GooberFile (was running out of fav. var. names) to open a file.

open( ASDF, ">$GooberFile" );
print ASDF "<NAME=\"$input{'from'}\">\n";
print ASDF "<EMAIL=\"$email\">\n";
print ASDF "<DATE=\"$time\">\n";
print ASDF "$input{'text'}\n";
close( ASDF );

It opens that file, but doesn't print anything.

I've tried perl4 and perl5 ... same result.  So I dunno what could be
happening.  I'm thinking of grabbing perl5.002 and installing that for
the system ... but maybe it's the system itself.

I ran fsck (disk doctor) and the disk is ok.

I'm going insane and I dunno what could be happening.  I know perl isn't
supposed to be doing this ...

Please help ..

Thanks in advance!


University of NC - Chapel Hill                                WebGuru
Math Sci - Comp Sci Senior                                 Mac Phreak (sig.v4)
                    New Voice Mail - (919) 248-6234


1. any special perl-thingies to help manage cron-called scripts?

This is a difficult question to formulate, because I don't really know
what I am asking for. My situation is this: on one computer that I can
ftp into, data files appear at somewhat arbitrary times. At the moment
this other machine is a VAX, over which I have little control. Right
now I am having cron run a ftping perl script fairly frequently.

But I'm wondering if I should try and set it up as a never-ending
process, that wakes up and checks the other machine every few minutes.
I would have to launch it from rc.local to ensure that if the machine
crashed the process would start up as soon as the machine did.

Anyone out there got any good comments about this idea? Will too many
ftp checks of the other system cause noticeable performance

Any thoughts or comments will be appreciated. Thanks.


 (301) 286-2396                          fax: (301) 286-1754

2. Stuck trying to configure my rage Xpert128.. Help!!

3. Please Help: Error 500 while running Perl scripts on HTTP server

4. HELP! a.out won't run

5. Weird Ping, weird FTP, weird Telnet... HELP!!!

6. FreeBSD & partitions...

7. Weird, weird, weird issue ....

8. How to configure SVGALIB?

9. PLEASE PLEASE HELP Major problem with my SCSI & Redhat 5.0 PLEASE Help

10. Sendmail problems. Please please please please help!

11. NFS please help me please please please sniff

12. Please help with weird FTP behavior through browser

13. Weird C shell behavior: Please help explain.