I'm not quite sure how to code this, (or search for a solution to....)
I want to search a text file, and replace a text string of the format $xxxxxxx. Example: I want to search for $sysname in a file, but I want to first assign that string to a perl variable. I've tried various combinations of escaping the $, but it is not working. so something like this: $target = "$sysname"; if (/$target/) { print "found $sysname\n"; } however, if I do this, it works. if /\$sysname/ { print "found $sysname\n"; } Thanks. Chris _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs