in reply to
how to read in a line containing exponentials
Im not sure i understand your question correctly, but i think changing the line
s/$oldline/$newline/; # doesn't work
to
s/\Q$oldline\E/$newline/;
may help u here.
See
quotemeta
Comment on
Re: how to read in a line containing exponentials
Select
or
Download
Code
Replies are listed 'Best First'.
Re^2: how to read in a line containing exponentials
by
pattobw
(Novice)
on Nov 06, 2010 at 16:37 UTC
Thank you!! That worked perfectly.
Also, Thanks for the link on quotemeta. I will print this out and put it in my notebook.
Thanks again.
[reply]
In Section
Seekers of Perl Wisdom