Stripping http:// from a string variable

by "Jan Morell" <janman(at)n-jcenter.com>

 Date:  Sun, 16 Jul 2000 13:34:51 -0400
 To:  "HWG-Languages" <hwg-languages(at)hwg.org>
 References:  default
  todo: View Thread, Original
I have a string variable which contains a URL including the "http://".  I
want to strip the "http://" from the variable.  This is in a Perl script.
Example:  Change "http://my.com" to "my.com"

I have tried this with no success.

$URL =~ s/(^http:\/\/)//;

Jan

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA