I
Ivan Novick
Hi,
In C, you are not allowed to modify a variable 2 times in one
statement.
In perl, this code does not complain at all (similar code in C is
illegal).
Can someone varify that this is legal perl syntax?
####################################
#!/usr/bin/perl
use strict;
use warnings;
my $test = 1;
$test = ++$test;
print "$test\n";
####################################
Thanks,
Ivan
http://www.0x4849.net
In C, you are not allowed to modify a variable 2 times in one
statement.
In perl, this code does not complain at all (similar code in C is
illegal).
Can someone varify that this is legal perl syntax?
####################################
#!/usr/bin/perl
use strict;
use warnings;
my $test = 1;
$test = ++$test;
print "$test\n";
####################################
Thanks,
Ivan
http://www.0x4849.net