Arijit Das wrote:
> I am just wondering why is this giving a strange result. Any clues...?
>
> bash-2.01$ echo 4.56 | perl -p -e 'my $var1 = ; $var2 =
$var1 * 100; print $var2;'
> 04.56
> bash-2.01$
>
> I am expecting 456 in the ouput instead of 4.56
>
> Am I missing anything...?
>
Remov
I think the –p is the one causing
the problem
Tried
echo 4.56 | perl -e 'my $var1 =
* 100; print $var1;'
and the result is 456
bash-2.01$ echo 4.56 | perl -p -e 'my $var1 = ; $var2 =
$var1 * 100; print $var2;'
04.56
I only remove th