Skip to contentSkip to conversation

Perl

DISCUSSION Alan Womack 1 participant 1 message Dec 4, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 1 line

How can I make this assignment in one statement. I know its going to be

something easy.
$path=$5;
$path=~s/ /\\ /g; <

won't

$path=$5=~s/ /\\ /g;

work? maybe have to put () around the $5=~, but I think it will work without that. -
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs