Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: How do I remove all of the blank spaces in a string?by marcink (Monk) |
on Jun 08, 2001 at 01:36 UTC ( [id://86765]=note: print w/replies, xml ) | Need Help?? |
Use a regexp: $batch_date =~ s/\s//g; Or, if you want to keep the old value in input variable: ($new_var = $batch_date) =~ s/\s//g; -mk
In Section
Seekers of Perl Wisdom
|
|