Thanks for your help.
but the problem is different.
I am starting a perl prog from cgi application. if i get any prob in perl prg(like variable declaration & fatal erro), i should show it to respective user.
so i have to take the error messages from perl prg & print it in cgi application....
User Profile
Collapse
-
Getting error & warnings messages from PERL PRG
Hi,
I want to get the error & warnings messages from program.
like fatal error, variable declaration error in strict mode & etc..
is it possible in perl? plz give your suggestions.
Thanks
Vijay -
Sorry. try this....
[code=perl]
$file = 'c:\Perl\Beth\f 7.txt';
open(INFO, $file);
while ($line = <INFO>)
{
while($line =~m{(\w)}igs)
{
$a = $1;
if($line =~m{$a{2}}is)
{
print "$a-$line\n";
last;
}
}
}
close(INFO);
[/code]Leave a comment:
-
Plz try this...
[code=perl]
$file = 'c:\Perl\Beth\f 7.txt';
open(INFO, $file);
while ($line = <INFO>)
{
while($line =~m{(\w)}igs)
{
$a = $1;
if($line =~m{$a{2}}is)
{
print "$a-$line\n";
}
}
}
close(INFO);
[/code]Leave a comment:
-
Thanks. I have a php application which needs to initiate the perl application in background. When it(perl prg) is in running condition, i have to show "the process is started" in my PHP application. but system command in php is waiting for result from perl prg.
Now i am using Ajax to resolve this issue.
but i want to know is there any correct ways of resolving this issue......Leave a comment:
-
want to run the perl programs thr PHP in background
I have a application which need to run the perl prg thr php in background.
I have tried system command. but it's waiting for perl program completion.
I want to simply start the prg and the control again comeback to browser.
is it possible?
No activity results to display
Show More
Leave a comment: