我需要看到,“静态”指挥正在恢复。 如何做到这一点? 我使用了以下文字,但做了一些工作:
print(stat($filename"));
我指的是指挥所被处决,但并没有打印出必须归还的价值。
我需要看到,“静态”指挥正在恢复。 如何做到这一点? 我使用了以下文字,但做了一些工作:
print(stat($filename"));
我指的是指挥所被处决,但并没有打印出必须归还的价值。
rel=“noretinger”>http://perldoc.perl.org/Functions/stat.html:
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
$atime,$mtime,$ctime,$blksize,$blocks)
= stat($filename);
此外,
文件:统计模块提供了方便的、按姓名分列的查阅机制:
use File::stat;
$sb = stat($filename);
printf "File is %s, size is %s, perm %04o, mtime %s
",
$filename, $sb->size, $sb->mode & 07777,
scalar localtime $sb->mtime;
只是原始产出吗? www.un.org/chinese/ga/president
print (join (",", (stat($filename))), "
");
如果你永远想要淡化数据结构,我建议采用Dumper工具作为宝贵的工具。
use Data::Dumper;
print Dumper(stat($filename));
产出:
$VAR1 = 89;
$VAR2 = 1394949;
$VAR3 = 33188;
$VAR4 = 1;
$VAR5 = 1000;
$VAR6 = 20;
$VAR7 = 5574438;
$VAR8 = 100;
$VAR9 = 1320421684;
$VAR10 = 1317166549;
$VAR11 = 1317166549;
$VAR12 = 4096;
$VAR13 = 4;
doc 数据: 该模块的选择和背景细节摘要。
I am building a Web interface to monitor an embedded system. I have built a Perl script which runs remote commands and gathers output from that system. Now what I need is a Web interface which makes ...
How do I tell what type of value is in a Perl variable? $x might be a scalar, a ref to an array or a ref to a hash (or maybe other things).
When I try a "chdir" with a filehandle as argument, "chdir" returns 0 and a pwd returns still the same directory. Should that be so? I tried this, because in the documentation to chdir I found: "...
I ve read the doc for GetOptions but I can t seem to find what I need... (maybe I am blind) What I want to do is to parse command line like this myperlscript.pl -mode [sth] [inputfile] I can use ...
I m a little confused about what is going on in Perl constructors. I found these two examples perldoc perlbot. package Foo; #In Perl, the constructor is just a subroutine called new. sub new { #I ...
I would like to submit a form to a CGI script localy (w3c-markup-validator), but it is too slow using curl and apache, I want to use this CGI script more than 5,000 times in an another script. and ...
So I m running perl 5.10 on a core 2 duo macbook pro compiled with threading support: usethreads=define, useithreads=define. I ve got a simple script to read 4 gzipped files containing aroud 750000 ...
A Google search yields a number of results - but which ones are the best? The Perl site appears to contain two - perlboot and perltoot. I m reading these now, but what else is out there? Note: I ve ...