Re: map problem
- From: "DJ Stunks" <DJStunks@xxxxxxxxx>
- Date: 14 Mar 2006 01:14:06 -0800
Uri Guttman wrote:
"DS" == DJ Stunks <DJStunks@xxxxxxxxx> writes:
DS> PERL Learner wrote:
>> How can we emulate the UNIX ls -sa1 command with map and get the
>> filesize in bytes?
DS> by the way, you do know that ls -s returns file size in _blocks_ right?
he didn't know because that is incorrect. from perldoc -f -X:
-s File has nonzero size (returns size in bytes).
Now, now. Don't be giving away hints for his assignment...
However, I don't believe I've ever said anything wrong. To wit: OP
asked to emulate the UNIX shell command _ls -s_ which he seems to think
returns file size in bytes. It does not. To emulate ls -s one would
be expected to return the file size in blocks -- unless, of course, his
prof made (gasp!) an error.
Maintaining my perfect record (lifetime),
-jp
.
- Follow-Ups:
- Re: map problem
- From: Uri Guttman
- Re: map problem
- References:
- map problem
- From: PERL Learner
- Re: map problem
- From: DJ Stunks
- Re: map problem
- From: Uri Guttman
- map problem
- Prev by Date: forking doubt
- Next by Date: Re: forking doubt
- Previous by thread: Re: map problem
- Next by thread: Re: map problem
- Index(es):
Relevant Pages
|