Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: ETbyrne
  • Content: Threads
  • Order by date
  1. ETbyrne

    Uploading problem

    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...
  2. ETbyrne

    Un-helpfull Error

    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...
  3. ETbyrne

    Opening External Files With Perl

    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...
  4. ETbyrne

    Pattern Matching

    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...
  5. ETbyrne

    Problem with grabing last ten lines.

    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...
  6. ETbyrne

    Odd Error

    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...
  7. ETbyrne

    Finding exact name from list

    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...
  8. ETbyrne

    Take 10 last lines from a txt file and print them?

    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...
  9. ETbyrne

    Saving .txt file as param name

    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...
  10. ETbyrne

    Perl commenting Script?

    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

Part and Inventory Search

Back
Top