I need to modify someone\'s Perl script, and I am not familiar with Perl at all.
There is a scalar variable $var, whose value is a floating point number pos
$var
So I am trying suggested expressions, I guess I am not using them correctly in Perl:
my $var = "123.456.66"; print "old $var\n"; $var =~ s/^\d+(?:\.\d+)?//; print "new $var\n";
Output:
$perl main.pl old 123.456.66 new .66