in reply to Idiom for a regex translation

( my $squished_name = $name ) =~ s/\W//g;
Boris

Replies are listed 'Best First'.
Re^2: Idiom for a regex translation
by cosimo (Hermit) on Apr 22, 2005 at 11:06 UTC
    A slight variation could be:
    my $name = my $squished_name = 'Rob J Anderson'; $squished_name =~ s/\W//g;