> The method mentioned is to get the output while u are running the perl
> files
> at the shell prompt not in the code..
> if u want to save the log details after the perl files are processed then
> use this function
>
> sub file_write {
> $_file = shift;
> $_data = shift;
> open FILE,"
Does anyone of you know how to generate WSDL files using Perl script ?
I want to generate WSDL files which I done with Pod::WSDl module. But it
generates for only one method at a time.
I want to execute two or more methods but it should all be displayed in one
WSDL file.
Please help!
Many Thanks,
> You could use filehandle to save the output outcome.
>
> use strict;
> open OUT, ">outfile.txt"; ## at the beggining
>
> and for instance:
> print OUT $seq->id(),"\n";
>
or use Perl's "select".
but that requires the OP to modify the source code, which is maybe not
what he/she want.
Regards.
-
The method mentioned is to get the output while u are running the perl files
at the shell prompt not in the code..
if u want to save the log details after the perl files are processed then
use this function
sub file_write {
$_file = shift;
$_data = shift;
open FILE,">$_file";
print
Ok got it now :)
Thank You all :)
Cheers,
Jyoti
2010/10/5 Jeff Peng
> > Sorry doesnt work.
> >
> > Error is :
> >
> > Can't locate object method "perl" in 'filename'...
> >
>
> what's the content of the script?
>
>
>
>
You could use filehandle to save the output outcome.
use strict;
open OUT, ">outfile.txt"; ## at the beggining
and for instance:
print OUT $seq->id(),"\n";
Thus, outfile.txt contains $seq->id(),
close OUT; at the end.
2010/10/5 Jeff Peng
> > Hello,
> >
> > Can anyone please tell me how
> Sorry doesnt work.
>
> Error is :
>
> Can't locate object method "perl" in 'filename'...
>
what's the content of the script?
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
Sorry doesnt work.
Error is :
Can't locate object method "perl" in 'filename'...
Also
2010/10/5 Jeff Peng
> > Hello,
> >
> > Can anyone please tell me how to save output (what we get after running a
> > perl script) as an external file?
> >
>
> run it under a unix shell?
> try:
>
> perl a.pl
> Hello,
>
> Can anyone please tell me how to save output (what we get after running a
> perl script) as an external file?
>
run it under a unix shell?
try:
perl a.pl > a.txt 2>&1
save all the output of a.pl to a.txt.
2>&1 means to capture the script's error output also.
--
To unsubscribe, e
perl script.pl > outfile.log
Chaitanya
On Tue, Oct 5, 2010 at 7:14 PM, Jyoti wrote:
> Hello,
>
> Can anyone please tell me how to save output (what we get after running a
> perl script) as an external file?
>
> Many Thanks,
> Jyoti
>
10 matches
Mail list logo