ulimit and system command



Hello

I am noticing a strange phenomenon and I would
appreciate it if someone helped me understand it

in my shell when I execute ulimit -a
I get
% ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) unlimited
memory(kbytes) unlimited
coredump(blocks) 1024
nofiles(descriptors) unlimited

But when I put this in a perl script like

#! /usr/bin/perl
system("ulimit -a");
I get
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 2097152
stack(kbytes) unlimited
memory(kbytes) unlimited
coredump(blocks) 1024
nofiles(descriptors) unlimited

I dont understand why the data area size was limited
to 2048MB as compared to unlimited is this a limit
perl sets ?






__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
.