Well, never got a responce. I learned alot of regex and this code works after many many hours of learning. It plays out clean on everything I throw it. Parses the request perfectly.
#!/usr/bin/perl -wT
#use strict;
use LWP::Simple;
use CGI;
my $cgi = new CGI;
#Default if not provided
my...
Hey guys,
I been doing alot of research on regex yet I am still not sucessful at extracting a domain name, directory name, file name out of a string in this format using regex's. (Im new to perl)
Can someone show me how this could be done? http:// will always be at the start of the line...
heh after reading this I know it sounds like an obscene request but my coding platform is notepad and my testing platform is via ftp to my remote domain.
Im not sure if everyone codes like this but having 5 browsers for regex references, a ftp client, notepad, and windows explorer open is a...
Hey prex1,
thanks for your input! Your code worked like a dream untill I realized I would be dealing with elements in a url too. I have been racking my brain trying to learn regex.
Would it be too much if I asked you to finnish this code for me? I been plugging away for hours at this getting...
Right you are! I think I bit off a little more then I can chew on this project not being native to perl but its been a really good learning exp.
This code segment is actually a vital portion of a project I am building. The project basically acts like server side frames. I have a 4 sided html...
Ok, here is my script finalized the way I need it, if anyone sees an error or something that can make it better please let me know.
#!/usr/bin/perl -wT
use LWP::Simple;
use CGI;
my $cgi = new CGI;
#Default if not provided
my $localdomain = 'http://www.iterm.mobi';
my $domain = $localdomain...
ok, I got it, I started over for the 100th time after finding a sweet reverse() function and this does exactly what I wanted it to do.
Like I said, Im not good at perl its a new language for me meaning I've been using it for about a week now so if anyone can improve on this please let me know...
Ok guys, I don't know whats going on. Something I figured would be a simple cgi script has become a nightmare that I can't figure out without using an extensive "if" process. Here is what I am trying to do. I am by far not an expert in perl coming from a vb background so my code is probably...
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.