Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: How to Remove Commas ?

by tobyink (Canon)
on Mar 27, 2012 at 14:06 UTC ( [id://961936]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $var = "foobarfoobaz";
    $var =~ s/foo//;
    say $var;   # says "barfoobaz"
    
  2. or download this
    my $var = "foobarfoobaz";
    $var =~ s/foo//g;
    say $var;   # says "barbaz"
    
  3. or download this
    my $var = "foobarfoobaz";
    $var =~ s@foo@@g;
    say $var;   # says "barbaz"
    
  4. or download this
    my $var = "foobarfoobaz";
    $var =~ s{foo}{}g;
    say $var;   # says "barbaz"
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://961936]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-03-29 07:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found