Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Removing extra spaces

by Athanasius (Chancellor)
on Jul 31, 2012 at 02:09 UTC ( #984547=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl
    use strict;
    ...
    $string =~ s/[ ]{2,}/ /g;
    
    print "'", $string, "'\n";
    
  2. or download this
    '2012-7-27 9:37:31'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://984547]
help
Chatterbox?
[stevieb]: w00t! My Pi software(s) now have their own built-in SPI bus communication methods. About another week and I'll have everything completed!

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2017-01-20 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (179 votes). Check out past polls.