Forum Moderators: coopster & phranque

Message Too Old, No Replies

Perl HELP!!

I don't anything about it

         

circuitjump

11:51 pm on Aug 14, 2001 (gmt 0)

10+ Year Member



Now with perl (which I know nothing about) If I wanted to have it do perlparsing? How would I want to go about writing this code

if ($f =~ /%siteurl/ ¦¦ $f =~ /%v$/ ¦¦ /cs-uri-stem$/)) {
$found=1;
$pos_url = $i;
$i++;
$PerlParsingFormat .= "([^\\s]*) ";
}

Now mind you I just wanted to grab the url www.domain.com

sugarkane

4:08 pm on Aug 15, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



CJ - I'm not sure what you mean. Could you explain a little?

Bolotomus

5:10 pm on Aug 15, 2001 (gmt 0)

10+ Year Member



If you don't know anything about Perl communicate your idea in pseudocode or plain-English. I'm sure what you're trying to do is easy but I have no idea what you're trying to do.

About this statement

if ($f =~ /%siteurl/ ¦¦ $f =~ /%v$/ ¦¦ /cs-uri-stem$/))

you probably mean

if ($f =~ /%siteurl¦%v$¦cs-uri-stem$/) {
...
}

(edited, cleaned up code)

circuitjump

8:06 pm on Aug 15, 2001 (gmt 0)

10+ Year Member



sorry everyone for not being descriptive enough, but I got it working.:)