I am reading text from an external file and need to substitute the text 'XAXUSER' with contents of a scalar.
This replaces 'XAXUSER' with 'USERNAME'.
How do I replace 'XAXUSER' with the value of $USER?
Keith
This replaces 'XAXUSER' with 'USERNAME'.
Code:
my $USER='MYUSERNAME';
my $LINK='myscript.cgi?tag=1&mak=34&user=XAXUSER';
$LINK=~ s/XAXUSER/USERNAME/g;
print "$LINK<BR>";
Keith