Conserving memory - was SPUG: Fw: greetings

ced at carios2.ca.boeing.com ced at carios2.ca.boeing.com
Mon Oct 22 13:25:38 CDT 2001


>... 
> to avoid getting doubled newlines. But then, no-one's actually going to
> write this code anyway, when a simple:
> 
>      system qw(cat templates/RealTop.htm);
> ... 
>
>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?

I read recently (Dave Roth's Win32 Perl Programming confirms) that 
Win32 simulates fork with threads and that an additional process 
isn't launched. Your program just stops until the thread completes. 

Apparently, though, you can force a separate asynchronous process 
by launching with the start command:

   my $pid = system( "start notepad.exe" ); 


>> Also, is there a 'cat' on windows?

Only possible via Unix add-on's I believe.


Rgds,
--
Charles DeRykus

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://zipcon.net/spug/





More information about the spug-list mailing list