S
ssojoodi
Hello,
While debugging a Perl script, I came across a statement like this:
my @myarray = ("str1", "str2", "str3", "str4");
my $foo = (stat(@myarray))[2];
print $foo;
[result]: str3
I know that this is not the proper usage of the stat function, but I'm
wondering why this script works! I could not find documentation on
this within the perlfunc manual, so I figured this may be a bug.
Any ideas?
Regards,
Sahand
While debugging a Perl script, I came across a statement like this:
my @myarray = ("str1", "str2", "str3", "str4");
my $foo = (stat(@myarray))[2];
print $foo;
[result]: str3
I know that this is not the proper usage of the stat function, but I'm
wondering why this script works! I could not find documentation on
this within the perlfunc manual, so I figured this may be a bug.
Any ideas?
Regards,
Sahand