Re: Redirect Print

[email protected] (Sean Davis)
Newsgroups perl.beginners.cgi
Organization NIH
Message-ID <[email protected]>
On Wednesday 30 May 2007 11:56, Naji, Khalid wrote:
> Hi,
>
> is there any way to mask a printing, when I call a Function using the
> Command "print" and without to modify this Function:
>
> Like:
>
> My ($Name) = &get_name(12345);
>
> Sub get_name
> {
> $id = @_;
> ...
> Print "Blalalalalalalbla...\n";
> Return (Name);
> }

Printing will go to stdout, which is then sent to the browser.  If you don't 
want that to go to the browser, you can print to STDERR and that will 
typically end up in the error_log file for your server.

Sean
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.