Perl Question
| From: | List Monkey) | Date: | Fri, 28 Jun 2002 17:12:41 +0000 |
| Subject: | Perl Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-104368@lists.php.net to get a copy of this message | ||
I know that this a PHP list. I need some perl help.
i need to take all the "." in a web address and make them into "-".
example
subdomain.domain.com --> subdomain-domain-com
get it?
heres my s/ code....but it doesn't work :-(
$domain = s/./-/gi;
~kurth
Kurth Bemis - Network/Systems Administrator, USAExpress.net/Ozone Computer
"Jedi business, Go back to your drinks" - Anakin Skywalker, AOTC
kurth@usaexpress.net | http://kurth.hardcrypto.com
PGP key available - http://kurth.hardcrypto.com/pgp