how do I use the s/ / / to read/match and then later to write/substitute
words into the same existing file? i tried this below but it just wipes out
my entire file.
#!/usr/bin/perl
open(TEST, ">test.txt") or die "Can't open PRICE: $!\n";
$file = <TEST>;
$file =~ s/jimmy/thomas/; # or $file = tr/jimmy/thomas/;
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]