Hi, PaulS!
I literally make variable a to be equal to string "string1", for testing. And then I want to replace "string1" with "string2".
So at the command prompt, I first write
a=string1
And then
$a =~ s/string1/string2/g
So after executing the last command, I would expect $a to be equal to "string2". However, after executing this command, I get the error ksh: string1: not found.
Did I manage to clear this up? Please, let me know. Thanks!
Evelina
Main Topics
Browse All Topics





by: PaulS_IIIPosted on 2004-11-30 at 10:19:46ID: 12708664
Could you give a more concrete example? It is possible that your string1 is a meta character so you would have to escape it. So If you could provide a real example I might be able to help you