Practical mod_perl / HTML Book /



previous page: 6.4.7. Formats
  
page up: HTML Version of the book
  
next page: 6.4.9. BEGIN blocks

6.4.8. Output from System Calls


The output of system( ), exec( ), and open(PIPE,"|program") calls will not be sent to the browser unless Perl was configured with sfio. To learn if your version of Perl is sfio-enabled, look at the output of the perl -V command for the useperlio and d_sfio strings.

You can use backticks as a possible workaround:

print `command here`;

But this technique has very poor performance, since it forks a new process. See the discussion about forking in Chapter 10.

 

Continue to:

  • prev: 6.4.7. Formats
  • Table of Contents
  • next: 6.4.9. BEGIN blocks







TOP
previous page: 6.4.7. Formats
  
page up: HTML Version of the book
  
next page: 6.4.9. BEGIN blocks


Menu

  • HTML Book
  • PDF Book
  • Download Code
  • Table of Contents
  • Errata
  • mod_perl2 User's Guide
  • Sitemap

Search


Add to Google




Creative Commons License


Written by
Eric Cholet (Logilune) and
Stas Bekman (StasoSphere & Free Books).


[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007 StasoSphere.com