Re: how to remove the letter n from a line of text



pauls <pauls@xxxxxxxxxx> wrote:

Let me be more clear and correct myself:
What I was actually trying was this:

$my_variable =~ s/n/e-9/;

I doubt it. Please always post a minimal working Perl program that shows
the issue. A lot of problems are solved that way before they have to be
posted to Usenet in the first place. And if it doesn't, at least it
doesn't waste *everbody's* time (including yours) with a game of "guess
the error".

perl -e "my $mv='3.5n'; $mv =~ s/n/e-9/; print $mv"

3.5e-9


--
John

http://johnbokma.com/mexit/2008/
.