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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by ionstorm101

  1. ionstorm101

    IO::Socket problem

    I tried using the "cookie jar" method also but to no avail. I create a file called cookies.txt in the same directory as the perl program with the example cookie i posted above in it but when i ran the script i got the following output [nnp@main perl]$ perl connectCook.pl cookies.txt does not...
  2. ionstorm101

    IO::Socket problem

    Ok i decided to use LWP instead but i've ran into trouble with this aswell. Here is my code: #!/usr/bin/env perl use LWP 5.64; $browser = LWP::UserAgent->new; #Create a UserAgent object $url = "http://www.bright-shadows.net/challenges/programming/get_started/tryout.php"; $response =...
  3. ionstorm101

    IO::Socket problem

    Damn, I forgot that the http header would be part of the response. It is a proper fully functional http server im connecting to so i assume it will use standard responses. In that case its not the first line I want at all, its the first line of the data section. Would the best way to read in...
  4. ionstorm101

    IO::Socket problem

    In this part while (<$sock>){ I will have to take the input and get the part of the text i need pretty quickly (1 second time limit). When does that stop reading? (does it wait for a \n or how does the server signal its done sending?) the reason I was using $buffer = <$sock>; is cause i...
  5. ionstorm101

    IO::Socket problem

    Ok, this program im writing is part of a challenge on a site. Basically I have to connect to a page, take the output, parse out a string, append that string to a url and then connect to that url to get the solution. The following is my code #!usr/bin/env perl -w use IO::Socket; $sock = new...
  6. ionstorm101

    File I/O problem

    the input file is any text file, i.e a book the output text file is one word per line as is the exclusion file. Thanks for explaining that stuff man. If i have 20,000 words in the output file and im still taking in words would loading them into a hash not be a bit too much? Btw, i still dont...
  7. ionstorm101

    File I/O problem

    And two other things, if you feel like answering : ) Why did you use a hash for exclude instead of an array and why do you use next in those two statements instead of last? Dont you want to break if those are true? Is next the equivelant of a continue statement? So wouldnt it be last?
  8. ionstorm101

    File I/O problem

    The reason I used the +>> instead of >> (it was that originally) was I wanted to open the output file for both reading and writing. Once i've checked everything else I want to run through the output file to see if the word is already in it so i can avoid duplicates. Any ideas? Thanks for the...
  9. ionstorm101

    File I/O problem

    Hi, im writing a script to create lists of words from an input file. The script im writing is meant to take 3 arguments, an input file, a list of words not to be included in the dictionary and an output file. The problem is I want no repeated words in the dictionary. What im trying to do is...

Part and Inventory Search

Back
Top