On Tue, 2008-11-04 at 16:37 +0100, Rob Coops wrote: > On Tue, Nov 4, 2008 at 4:35 PM, Sharan Basappa <[EMAIL PROTECTED]>wrote: > > Thanks. BTW, a variable ($x = " ") instead of actual space would do, right? > > > > Yeah that should work just fine.
It is better to call it $SPACE: my $SPACE = " "; # and later $temp =~ s{ \s+ }{$SPACE}gx; -- Just my 0.00000002 million dollars worth, Shawn The map is not the territory, the dossier is not the person, the model is not reality, and the universe is indifferent to your beliefs. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/