P
Paul Tomlinson
Is there an easy one line way to replace a 0 with empty string?
PT
PT
Is there an easy one line way to replace a 0 with empty string?
Andreas Kahari said:Do you need anything more sofisticated than "s/0//"?
$ perl -e '$a=10; $a =~ s/0//;print $a, "\n"'
1
Andreas Kahari said:Do you need anything more sofisticated than "s/0//"?
$ perl -e '$a=10; $a =~ s/0//;print $a, "\n"'
1
Paul Tomlinson said:Is there an easy one line way to replace a 0 with empty string?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.