Little perl help?

From: Date: Wed, 09 Sep 2009 20:35:18 +0000
Subject: Little perl help?
Groups: php.general 
Request: Send a blank email to php-general+get-297846@lists.php.net to get a copy of this message
Hey all, I know this is a PHP list, but I could use a bit of Perl help, a language which just does not fit in my C/C++/Java/PHP trained brain. A directory is created with the following: mkdir("$img_dir",$CHMOD_ON_FOLDER_CREATE); I need to replace spaces with the underscore character so the directory name contains no spaces, so I tried preceding it with $img_dir =~ s/ /_/g; Which did nothing. Can someone help here? Much thanks, Skip -- ==================================== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com ------------------------------------ Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut

« previous php.general (#297846) next »