windows-nt/Source/XPSP1/NT/shell/comctl32/v5/redist/varreplace.pl

11 lines
310 B
Perl
Raw Normal View History

2020-09-26 03:20:57 -05:00
$start = "one two Variable three four";
$stop = 14; # $ARGV[1];
#$ARGV[0];
#printf("Opening Filename: printing from characters [%d..%d]\n",$start,$stop);*/
while(<STDIN>)
{
($temp = $_) =~ s/$ARGV[0]/$ARGV[1]/im;
# $temp = substr($_,$start,$stop);
print $temp; # ,"\n";
}