![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
open a socket and print from stdin....i thinkby stevenrh (Beadle) |
on Oct 05, 2004 at 18:35 UTC ( #396709=perlquestion: print w/replies, xml ) | Need Help?? |
stevenrh has asked for the wisdom of the Perl Monks concerning the following question:
Divine Monks,
I currently have a file that is a list of HTTP statements. I want open a socket (or a socket for each HTTP statement), and print the http command: GET http://website.org/session1?32612391862938&email=heythere%40dude.net /HTTP/1.0 so far, this is my direction...and this may be wrong (hence the post) I plan to open the file
then I was thinking use a "for, foreach"
and this is where i need a socket??? I have heard that I could use IO::Socket, but not really knowing the semantics of perl, it's not quite as easy to piece together the scraps of sample code I've borrowed from all corners of the world.... here's my socket :
UPDATE: Thanks all for your help, and for being so cool to a noob, who could've RTFM (for a while).
Back to
Seekers of Perl Wisdom
|
|