[Chicago-talk] scalar manipulation
Andy Lester
andy at petdance.com
Fri Mar 31 12:38:24 PST 2006
On Mar 31, 2006, at 2:36 PM, Richard Reina wrote:
> Forgive me if this something I should know, but can someone tell me
> the simplest way to remove blank spaces from a scalar?
>
> I need to turn
>
> $a = "now is a good time for a beer";
>
> to
>
> "nowisagoodtimeforabeer";
Regular expressions.
$a =~ s/ //g;
xoa
--
Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance
More information about the Chicago-talk
mailing list