Octavian Rasnita wrote:
Use select() function.
Read perldoc -f select
Teddy
- Original Message -
From: "Matthias Kraatz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 27, 2004 12:20 AM
Subject: 're'-redirecting STDOUT back to ST
Use select() function.
Read perldoc -f select
Teddy
- Original Message -
From: "Matthias Kraatz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 27, 2004 12:20 AM
Subject: 're'-redirecting STDOUT back to STDOUT after writing to a
Matthias Kraatz wrote:
in a cgi-script I wanted to prevent an executable that I call from
within the script from dumping output directly to the webpage.
This worked fine with 'open(STDOUT,">something-log.txt")'.
But now I want to write to the webpage again.
'open(STDOUT,">&STDOUT")' does not only l
Hi,
this might be a really stupid question. But, in a cgi-script I
wanted to prevent an executable that I call from within the script from
dumping output directly to the webpage.
This worked fine with 'open(STDOUT,">something-log.txt")'.
But now I want to write to the webpage again. 'open(STD
print "e.g. program.pl \n";
}
Hopefully it may be of some use to somebody else starting out and stumbling in this
area.
>
> From: Ged <[EMAIL PROTECTED]>
> Date: 2003/07/24 Thu AM 08:47:23 GMT
> To: [EMAIL PROTECTED]
> Subject: Re: Re: modifing and
AIL PROTECTED]
> Subject: Re: modifing and writing to a file
>
> NYIMI Jose (BMB) wrote:
>
> >s/a-z/A-Z/g should be s/[a-z]/[A-Z]/g;
> >
>
> Character classes are only possible in the matching part of the regex,
> not in the replacement part. You regex says substit
NYIMI Jose (BMB) wrote:
s/a-z/A-Z/g should be s/[a-z]/[A-Z]/g;
Character classes are only possible in the matching part of the regex,
not in the replacement part. You regex says substitute all occurences of
a lowercase alphabet with the string '[A-Z]'
--
To unsubscribe, e-mail: [EMAIL PROTEC
pping on initial letters. See "ucfirst" for
that.)
If EXPR is omitted, uses "$_".
C:\>
-Original Message-
From: Ged [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 10:00 AM
To: [EMAIL PROTECTED]
Subject: modifing and writing to a file
Hi all,
Ged wrote at Thu, 24 Jul 2003 08:00:04 +:
> I am very new to perl (2 days) but am finding it very rewarding. I have however
> stumbled across a problem hopefully somebody can help me with.
>
> I am trying to open a file, change the text from lowercase to uppercase and rewrite
> it to a back
if you are new to perl try
perl -e "print uc($_) while (<>);" c:/ged/perl files/stuff.txt > c:/ged/perl
files/stuff.bk
-Original Message-
From: Ged [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 10:00 AM
To: [EMAIL PROTECTED]
Subject: modifing and writing to
Hi all,
I am very new to perl (2 days) but am finding it very rewarding. I have however
stumbled across a problem hopefully somebody can help me with.
I am trying to open a file, change the text from lowercase to uppercase and rewrite it
to a backup file. However, I only seem to be duplicating
From: "Anthony Beaman" <[EMAIL PROTECTED]>
> Hi! I'm sure this is simple and I'm overlooking something but here
> goes. I'm trying to write a script that will ping a machine but print
> it's results to a file (in Wordpad; I'm using NT) and the file will
> open and show the results. I'm able to pi
Hi! I'm sure this is simple and I'm overlooking something but here goes. I'm trying to
write a script that will ping a machine but print it's results to a file (in Wordpad;
I'm using NT) and the file will open and show the results. I'm able to ping and I'm
able to direct it to a file but it's n
On Sat, 16 Feb 2002 at 01:19 GMT, Naika - Ev1 wrote:
> I'm trying to write to a file from a 5 choice radio form and I keep
> getting this error
> Undefined subroutine &main::param called at pollresults_rg.pl line 5.
> What does that mean?
It means that the param() subroutine can't be found in th
I'm trying to write to a file from a 5 choice radio form and I keep getting
this error
Undefined subroutine &main::param called at pollresults_rg.pl line 5.
What does that mean?
My code is:
#!/usr/bin/perl -w
use CGI::Carp qw(fatalsToBrowser);
@picks = param("radiobutton");
#write to a file
o
Win32::OLE
to
interface with Excel. You'll need to be on a Win32 machine, with Excel
installed.
There is also a module called Spreadsheet::WriteExcel which is
platform
independant, but I have not had any experience using this.
HTH
John
-Original Message-
From: Lance Prais [mailto:[
:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 10:40 AM
To: 'Lance Prais '; 'John Edwards '; 'PERL '
Subject: RE: Writing to a file
Supposedly there's a module out there called Spreadsheet::WriteExcel, but I
haven't tried it yet. That might also
Supposedly there's a module out there called Spreadsheet::WriteExcel, but I
haven't tried it yet. That might also be worth a look.
-Original Message-
From: Lance Prais
To: John Edwards; PERL
Sent: 1/31/02 9:57 AM
Subject: RE: Writing to a file
I am working on a Solaris
t;>
I have a question regarding writing to a file.
I have written a script and my experiences in perl thus far has been
limited
to outputting data to a JSP page but in this case I need to send it to
a
excel file. Does anyone know if there are examples out there that can
show
me how to do this?
Th
I am working on a Solaris box. So I will try the winExcel, hopefully that
will solve this.
Thank You
Lance
-Original Message-
From: John Edwards [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 7:50 AM
To: 'Lance Prais'; PERL
Subject: RE: Writing to a file
W
this.
HTH
John
-Original Message-
From: Lance Prais [mailto:[EMAIL PROTECTED]]
Sent: 31 January 2002 17:46
To: PERL
Subject: Writing to a file
I have a question regarding writing to a file.
I have written a script and my experiences in perl thus far has been limited
to outputting data to
I have a question regarding writing to a file.
I have written a script and my experiences in perl thus far has been limited
to outputting data to a JSP page but in this case I need to send it to a
excel file. Does anyone know if there are examples out there that can show
me how to do this
Lance Prais wrote:
>
> Does anyone know how to grab the server time to include it in a file?
my $date = localtime;
Or if you want UTC:
my $date = gmtime;
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ATE, "date |";
$date=;
chop $date;
[/snip]
So maybe I'm way off on what exactly it is you're looking to do ...
-X
-Original Message-
From: Lance Prais [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 8:29 PM
To: Lance Prais; [EMAIL PROTECTED]
Subject: RE: wri
Does anyone know how to grab the server time to include it in a file?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
If I want to write to a log file to track errors.
1. Open the file
2. Write to the file
3. Close the file
Is that the correct psudo-code
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello Everybody,
I want to append to a file but not able to do so..actually ia ma not getting the
command to write(append) to a file
open(HANDLE_CLI,">> $file_cli") || die"Cannot Append\n" ;
print HANDLE_CLI "$mailid\n" ; ## ithink problem
is here
close
Hi All:
I've run into a bit of a bump in one of the perl programs that I'm writing
and I need the expertise of real perl gurus. I'm using perl 5.0 on Windows
98 Second Edition.
I'm writing $calar variables to an array using:
push (@outmenuarray,$outline); I'm then writing @outm
28 matches
Mail list logo