enables some rudimentary switch parsing for switches on the
command line after the script name but before any filename
arguments (or before a `--'). Any switch found there is removed
from `@ARGV' and sets the corresponding variable in the *perl*
script. The following script prints `true' if and only if the
script is invoked with a `-xyz' switch.
#!/usr/bin/perl -s
if ($xyz) { print "true\n"; }stat SCALARVARIABLE
Returns a 13-element array giving the statistics for a file,
either the file opened via FILEHANDLE, or named by EXPR.
Typically used as follows:
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
$atime,$mtime,$ctime,$blksize,$blocks)
= stat($filename); if (EXPR) BLOCK
if (EXPR) BLOCK else BLOCK
if (EXPR) BLOCK elsif (EXPR) BLOCK ... else BLOCK
while (EXPR) BLOCK
while (EXPR) BLOCK continue BLOCK
for (EXPR; EXPR; EXPR) BLOCK
foreach VAR (ARRAY) BLOCK
STATEMENT if (EXPR);