Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Removing whitespace

by Anonymous Monk
on Dec 09, 2010 at 22:26 UTC ( #876342=note: print w/replies, xml ) Need Help??


in reply to Re: Removing whitespace
in thread Removing whitespace

It can be done like this -

$data=" abc " # Remove all spaces $data=~ s/ //g;

Output - abc

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://876342]
help
Chatterbox?
[stevieb]: Playing around with two DACs to control a single RGB LED (each DAC only has two outputs, LED has 3 inputs), and have realized that each of my IC RPi dists needs a wiring diagram, which is linked to within the documentation

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2017-08-20 19:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (317 votes). Check out past polls.

    Notices?