Just a quick question - I'm new to Perl but think it's fantastic, I use it
on my FreeBSD box.
I would like to know how to remove certain characters within scalars, for
example the scalar $box contains "hello", how can I remove the "l"s to
produce the scalar $box containing "heo"?
The same for white spaces, if a scalar contains " I'm Phil" or "
000.00" - how can I get it to only contain "I'mPhil" or "000.00"
Many thnaks for taking the time to read this email - I look forward to
Here is some screen copy from my Linux box demonstrating the commands:
$a = "hello";
$a =~ s/l//g;
$b = "I'm Phil";
$b =~ s/\s//g;
$c = " 000.00";
$c =~ s/\s//g;
Visit my on-line audio tutorials on Perl, at
[ back to toc ]