in reply to Re: Re: Re: pattern matching
in thread Creating a regex to match part of a URL's domain name (was: pattern matching)

aha! but what if i want to use
my $variable = "http://www.google.com"; ? does this subroutine not handle "/"'s?

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: pattern matching
by japhy (Canon) on Jun 06, 2001 at 20:26 UTC
      well, when i do "my ($string) = _@;" it works nicely, except when $string contains http:// whats ($variable) do anyhow?
        hm, i meant to say, when i do
        my ($string) = $_[0];, it works fine, unless i do  $my $variable = "http://www.google.com", then it says "Use of uninitialized value at ./index.cgi line 29."
        sorry ):
Re: Re: pattern matching
by strfry() (Monk) on Jun 06, 2001 at 21:21 UTC
    ok, now that i've embarrassed myself.. (:
    i figured a way around it; i just simply left out http:// and placed it statically in another portion of the code; i can always make a workaround if i need to link to, say, something with an ftp:// protocol heading. (:
    sorry for all the mess and frustration (although most of it was likely on my part hehe)
    thanks!
    strfry()