Re: Re[2]: [PHP] Perl Question

From: Date: Fri, 28 Jun 2002 17:28:30 +0000
Subject: Re: Re[2]: [PHP] Perl Question
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-104379@lists.php.net to get a copy of this message
At 06:17 PM 6/28/2002 +0100, Andrew Brampton wrote: we're developing something like easydns. PHP for the front end, perl to do all the system stuff. Like creating mail aliases, rebuilding the tinydns data file.... maybe someday I'll rewrite in in PHP-SHELL ~kurth
ah well. now he is one line closer to moving his project to php :) and if he isn't moving his project to php, then why not!?! ;) Andrew ----- Original Message ----- From: "Mirza Muharemagic" <mirza@php.co.ba> To: <php-general@lists.php.net> Sent: Friday, June 28, 2002 6:18 PM Subject: Re[2]: [PHP] Perl Question
     use backslsh before . ---->> \.
     $domain = s/\./-/gi;
     Andrew, he wanted perl help, not php :)
     Mirza mirza@php.co.ba
28.06.2002 19:10
There are many easy ways to do this, I would do the following:
$newDomain = str_replace('.','-',$domain);
easy :)
Andrew
----- Original Message ----- From: "Kurth Bemis (List Monkey)" <listmonkey@usaexpress.net> To: <php-general@lists.php.net> Sent: Friday, June 28, 2002 6:12 PM Subject: [PHP] Perl Question
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
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

« previous php.general (#104379) next »