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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to