Hi, I'm having a problem uploading a file using perl. I can get the file uploaded but it becomes distorted. Here's the uploading part of the script.
open(OUT,">./mywebs/ETbyrne/youth/album/images/$random.jpg") or &error("Can not open outfile for writing: $!");
flock(OUT,LOCK_EX);
my $file_len...
Hi, I'm getting a pretty un-helpfull error from my a registration script I made. Here's the error:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Error
1
Here's the script:
#!/usr/bin/perl -w
use strict...
I have a script that takes a url that someone enters in it and then the script is then supposed to open the file that the url points to and read it. The problem is I am not sure how to do this because to use perls open command you have to enter the machine path to the file.
Is there a way to...
Hi, I want to go threw a file until a line matches a pattern. It then prints that line and exits. The pattern I want to match is: <item>anything</item>
Her is my script so far.
#!/usr/bin/perl -w
use strict;
use CGI qw(:standard);
use Fcntl qw(:flock :seek);
open(FILE, ">>feed.rss") or die...
I'm having trouble printing the last ten lines from a text file to another text file. It works until it gets to the line 20 and I get this error...
Use of uninitialized value in string at e:\0\74\38\237038\user\240783\htdocs\mywebs\ETbyrne\cgi-bin\redalert\ten_newest_maps.pl line 20.
here's my...
Hi, I'm getting an odd error with my script, here's the error:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Could not open dir portals: No such file or directory at...
Hi, I'm having trouble with a script that looks thru authorlist.txt and looks to see if $author equals any of the lines.
But, so far no matter what you type in for $author, it says that $author allready exists!
Here's the sorting part of the script:
my $author = param('author') or die "You...
Let's say I have a file called links.txt with the below contents.
<a hre="joe.html">Joe</a><br>
<a hre="herb.html">Herb</a><br>
<a hre="Kim.html">Kim</a><br>
<a hre="June.html">June</a><br>
<a hre="jack.html">Jack</a><br>
... and so on and so fourth...
Let's say I want to grab the 10 last...
I am working on a script and I'm having trouble saving the info as the param $name.txt (for instance: $name = 'robs site.txt') . Instead of saving as let's say 'robs site.txt' it saves as $name.txt . How can I fix this?
Below is my script.
Note: The script below also writes <a...
Hi, I'm new to Perl and I am reading a book on it.
I was wondering if anybody knew of a script that allows someone to comment on a page but, the same script can be used for multiple pages.
Thanks for all help!
-ETbyrne
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.