Conserving memory - was SPUG: Fw: greetings
Matt Tucker
tuck at whistlingfish.net
Sun Oct 21 15:08:55 CDT 2001
-- Colin Meyer <cmeyer at helvella.org> spake thusly:
> On Sun, Oct 21, 2001 at 05:08:48AM -0700, Matt Tucker wrote:
>>
>> system qw(cat templates/RealTop.htm);
>
> Out of curiosity, does this work on Windows? (I don't have a windows
> box within convenience to test on.)
>
> The 'perldoc -f system' page says that Perl forks before executing
> the requested command. Does the Windows Perl's system execute the
> commands without forking?
That should work fine as long as cat is installed and in the path.
> Also, is there a 'cat' on windows?
Not with the default installation. I always installed cygwin on my
systems, though, but honestly the Windows angle never even crossed my
mind; I no longer think about Windows compatibility when I write code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://mail.pm.org/archives/spug-list/attachments/20011021/095edf98/attachment.bin
More information about the spug-list
mailing list