Re: 're'-redirecting STDOUT back to STDOUT after writing to a file

2004-11-26 Thread Matthias Kraatz
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

Re: 're'-redirecting STDOUT back to STDOUT after writing to a file

2004-11-26 Thread Octavian Rasnita
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

Re: 're'-redirecting STDOUT back to STDOUT after writing to a file

2004-11-26 Thread Gunnar Hjalmarsson
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

're'-redirecting STDOUT back to STDOUT after writing to a file

2004-11-26 Thread Matthias Kraatz
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

Re: Re: modifing and writing to a file (solved)

2003-07-24 Thread Ged
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

Re: Re: modifing and writing to a file

2003-07-24 Thread Ged
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

Re: modifing and writing to a file

2003-07-24 Thread Sudarshan Raghavan
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

RE: modifing and writing to a file

2003-07-24 Thread NYIMI Jose (BMB)
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,

Re: modifing and writing to a file

2003-07-24 Thread Janek Schleicher
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

RE: modifing and writing to a file

2003-07-24 Thread Marcos . Rebelo
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

modifing and writing to a file

2003-07-24 Thread Ged
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

Re: Open/Writing To A File Question

2002-10-08 Thread Jenda Krynicky
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

Open/Writing To A File Question

2002-10-08 Thread Anthony Beaman
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

Re: Writing to a file

2002-02-16 Thread Briac Pilpré
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

Writing to a file

2002-02-15 Thread Naika - EV1
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

RE: Writing to a file

2002-01-31 Thread Bill Akins
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:[

RE: Writing to a file

2002-01-31 Thread MECKLIN, JOE (ASI)
:[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

RE: Writing to a file

2002-01-31 Thread Timothy Johnson
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

Re: Writing to a file

2002-01-31 Thread Bill Akins
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

RE: Writing to a file

2002-01-31 Thread Lance Prais
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

RE: Writing to a file

2002-01-31 Thread John Edwards
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

Writing to a file

2002-01-31 Thread Lance Prais
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

Re: writing to a file

2001-12-29 Thread John W. Krahn
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]

RE: writing to a file

2001-12-28 Thread Johnson, Shaunn
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

RE: writing to a file

2001-12-28 Thread Lance Prais
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]

writing to a file

2001-12-28 Thread Lance Prais
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]

Appending(writing) to a file

2001-07-23 Thread Rahul Garg
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

problem writing to a file

2001-07-21 Thread Ron Woodall
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