Re: Is unlink() supposed to provide an error message on failure?

2009-11-20 Thread Peter Scott
On Thu, 19 Nov 2009 18:44:51 -0600, brian d foy wrote: > I've fixed this in commit 40ea6f68 to perl blead. The entry now reads: [...] > On error, C will not tell you which files it could not remove. > If you care about the files you could not remove, try them one at a > time: Presumably if you car

Re: 答复: the question of one program

2009-11-20 Thread Philip Potter
2009/11/20 gaochong : > Thanks . > But the code is from cpan.org ,and is crappy ,where I will go ? CPAN has no quality control. There is no guarantee that anything you get from CPAN will not be, as you say, "crappy". As a result, be selective with what you download from CPAN. Ask questions, go by

答复: the question of one program

2009-11-20 Thread gaochong
how to get the env of one PID . my $file="/proc/1/environ"; system "xxd $file"; open FILE,"< $file" or die "open $file err:$!"; my $c=; close FILE; my $hex=unpack "H*",$c; print "\n$hex\n\n"; my @list=split /00/,$hex; foreach (@list) { print pack ("H*",$_) . "\n"; } > -邮件原件- > 发件

Re: Is unlink() supposed to provide an error message on failure?

2009-11-20 Thread C.DeRykus
On Nov 18, 6:34 pm, jwkr...@shaw.ca (John W. Krahn) wrote: > David Christensen wrote: > > beginners: > > Hello, > > > Is unlink() supposed to provide an error message on failure? > > Yes.  All Perl functions that interact with the underlying system will > set $! on failure.  ($! is the same as errn