Re: Output formatting help

2011-08-02 Thread Linux Expert
On Mon, Aug 1, 2011 at 1:54 AM, newbie01 perl wrote: > > Hi all, > > I have several *nix version of Unix and while some I can use df -h, for > some I can't. The only common thing that I can use that works for all is df > -k. > > > Below is the output when r

Re: Output formatting help

2011-08-01 Thread Paolo Gianrossi
2011/8/1 newbie01 perl > > Hi all, > > Hi! > I have several *nix version of Unix and while some I can use df -h, for > some I can't. The only common thing that I can use that works for all is df > -k. > > > Below is the output when running df -k: > =

Re: Output to screen and to file ... how ... ???

2010-05-26 Thread Uri Guttman
> "np" == newbie01 perl writes: np> Uru: the name is uri. np> - Sorry, can't use DBI/DBD. I wish I can but unfortunately, am not np> allowed to install any additional modules. I've passed on that np> request to the SA already and hopefully, he will install it. I np> need to learn

Re: Output to screen and to file ... how ... ???

2010-05-26 Thread newbie01 perl
Hi YuanYou, Thanks .. that one works alright ... Uru: - Sorry, can't use DBI/DBD. I wish I can but unfortunately, am not allowed to install any additional modules. I've passed on that request to the SA already and hopefully, he will install it. I need to learn how to use it too, eventually I gues

Re: Output to screen and to file ... how ... ???

2010-05-26 Thread Uri Guttman
> "yy" == yuanyou yao writes: yy> Can you please try yy> open(ORA, "| dgmgrl | tee dgmgrl.out" ) ? this begs the whole question of why the OP isn't using DBI. yy> 2010/5/27 newbie01 perl : >> Hi all, >> >> Can someone please help and advise if it is possible to have the output

Re: Output to screen and to file ... how ... ???

2010-05-26 Thread yuanyou yao
Can you please try open(ORA, "| dgmgrl | tee dgmgrl.out" ) ? 2010/5/27 newbie01 perl : > Hi all, > > Can someone please help and advise if it is possible to have the output of > the code below to the screen and at the same time to the file as well? > > open(ORA, "| dgmgrl > dgmgrl.out" ) or die "C

Re: output record separator in one liner

2009-04-14 Thread Rick
Chas. Owens wrote: On Mon, Apr 13, 2009 at 15:39, Rick wrote: perl -lane' print "$F[0] ", "$F[4]" , " $F[5]";' Is there anyway to incoporate $\ <- output record separtor to do this instead of printing out w/ manual spaces beteween the variables? snip No, you want to use $, or $". Si

Re: output record separator in one liner

2009-04-13 Thread John W. Krahn
Rick wrote: perl -lane' print "$F[0] ", "$F[4]" , " $F[5]";' Is there anyway to incoporate $\ <- output record separtor to do this instead of printing out w/ manual spaces beteween the variables? The Output Record Separator is what comes at the end of the record (or line in this case), in

Re: output record separator in one liner

2009-04-13 Thread Chas. Owens
On Mon, Apr 13, 2009 at 15:39, Rick wrote: > > > perl -lane' print "$F[0] ", "$F[4]" , " $F[5]";' > > Is there anyway to incoporate $\ <- output record separtor to do this > instead of printing out w/ manual spaces beteween the variables? snip No, you want to use $, or $". Since $" is already se

Re: output of permute() to list for sprintf

2009-02-04 Thread Rob Canning
Dermot wrote: 2009/2/4 Rob Canning : hello, i am new to this list and very new to pearl. i have run into a problem i cant find a solution - i have searched the net for an answer but as i am so new to perl (and programming in general) perhaps i dont even know the right keywords... ok here it

Re: output of permute() to list for sprintf

2009-02-04 Thread Dermot
2009/2/4 Rob Canning : > hello, > i am new to this list and very new to pearl. > i have run into a problem i cant find a solution - i have searched the net > for an answer but as i am so new to perl (and programming in general) > perhaps i dont even know the right keywords... > > ok here it goes..

Re: Output

2008-10-24 Thread Brian
John W. Krahn wrote: Brian wrote: Hello Hello, Having played around for a while, I am able to get a reasonable result using Example 1, the unreasonable part being that l> gets added to the end of the file, I can only presume here that it is duplicating the last 2 characters of the last lin

Re: Output

2008-10-24 Thread John W. Krahn
Brian wrote: Hello Hello, Having played around for a while, I am able to get a reasonable result using Example 1, the unreasonable part being that l> gets added to the end of the file, I can only presume here that it is duplicating the last 2 characters of the last line in the file, that be

Re: Output files to text document

2008-09-16 Thread John W. Krahn
Vb wrote: What I'm trying to do is to create a program that reads through a certain directory and outputs the location of each file(both in the directory and subdirectorys) into a text file. I am completely new to Perl and under a time restriction so any help would be greatly appreciated...thanks

Re: Output files to text document

2008-09-16 Thread Jack Gates
On Tuesday 16 September 2008 12:50:32 pm Vb wrote: > What I'm trying to do is to create a program that reads through a > certain directory and outputs the location of each file(both in the > directory and subdirectorys) into a text file. I am completely new to > Perl and under a time restriction so

Re: output with utf8

2007-05-16 Thread Jen mlists
Hello, Does thie mean when I say, binmode(STDOUT, ":utf8"); The characters would be translated to utf8 for output automatically? (Would I need to translate them to utf8 firstly before output?) Thanks again. 2007/5/16, Jeff Pang <[EMAIL PROTECTED]>: Jen mlists 写道: > Hello, > > I need to outp

Re: output with utf8

2007-05-16 Thread Jeff Pang
Jen mlists 写道: Hello, I need to output contents with utf8 encoding in CGI scripts. Can you tell me how to open STDOUT with utf8 support?Thanks you. Hello, Just do, binmode(STDOUT, ":utf8"); see "perldoc perluniintro" for more details. -- Jeff Pang http://home.arcor.de/jeffpang/ -- To unsub

Re: output with utf8

2007-05-15 Thread yitzle
Check out http://perldoc.perl.org/encoding.html On 5/15/07, Jen mlists <[EMAIL PROTECTED]> wrote: Hello, I need to output contents with utf8 encoding in CGI scripts. Can you tell me how to open STDOUT with utf8 support?Thanks you. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: Output Order?

2007-03-01 Thread Bill Jones
Gr check syntax check syntax ; lol ... On 3/1/07, Bill Jones <[EMAIL PROTECTED]> wrote: # A long winded approach might use # (modified from FAQ 8) - use IPC::Open3; $_ = "I am the Alpha and the Omega (UT99 Player Xan)\n"; open(o, "cat $_"); print; print "H?\n"; That code wil

Re: Output Order?

2007-03-01 Thread Bill Jones
On 3/1/07, David Moreno Garza <[EMAIL PROTECTED]> wrote: What's the proper way to handle buffering? I mean, to prevent it. Sometimes you just want to output immediately; however as Tom mentioned 'cat' doesn't output until the buffer is closed; for example - $|++; # Setting this has no effect o

Re: Output Order?

2007-02-28 Thread David Moreno Garza
Tom Phoenix wrote: > On 2/28/07, Bill Jones <[EMAIL PROTECTED]> wrote: > > ># Out of curiousity -- why does line 2 get printed first? > > >open(o,"|cat");print o "I think I am 1st? ^L^M"; > >$_ = "LINE 2: Jvtu bopuifs Pfsm ibdlfs ..."; y/a-z/za-y/; print > > Buffering: cat can't give all of its

Re: Output Order?

2007-02-28 Thread Tom Phoenix
On 2/28/07, Bill Jones <[EMAIL PROTECTED]> wrote: # Out of curiousity -- why does line 2 get printed first? open(o,"|cat");print o "I think I am 1st? ^L^M"; $_ = "LINE 2: Jvtu bopuifs Pfsm ibdlfs ..."; y/a-z/za-y/; print Buffering: cat can't give all of its output until you finish writing t

Re: output not in current directory

2006-09-10 Thread chen li
What is the code for this from the > window > > > promt(not within the script itself)? > > > > > > c:\>perl test.pl >1(this will save the result in > the > > > current directory. > > > How about saving the result to c:/perl/self/?) > > > > > > Thanks, > > > > > > Li > > > > Hi Li, > > > > Google

Re: output not in current directory

2006-09-10 Thread Jen Spinney
On 9/10/06, Jen Spinney <[EMAIL PROTECTED]> wrote: On 9/10/06, chen li <[EMAIL PROTECTED]> wrote: > Hi all, > > When I run scripts I want the result saved to a > different directory instead of the current one on > window xp. What is the code for this from the window > promt(not within the script

Re: output not in current directory

2006-09-10 Thread Jen Spinney
On 9/10/06, chen li <[EMAIL PROTECTED]> wrote: Hi all, When I run scripts I want the result saved to a different directory instead of the current one on window xp. What is the code for this from the window promt(not within the script itself)? c:\>perl test.pl >1(this will save the result in th

Re: output not in current directory

2006-09-10 Thread Rob Dixon
chen li wrote: Hi all, When I run scripts I want the result saved to a different directory instead of the current one on window xp. What is the code for this from the window promt(not within the script itself)? c:\>perl test.pl >1(this will save the result in the current directory. How about

Re: output in a single line

2005-05-25 Thread Offer Kaye
On 5/25/05, Manav Mathur wrote: > > our $rupee = ; > chomp($rupee) ; Vineet, This is a quote from "perldoc perlop": "In scalar context, evaluating a filehandle in angle brackets yields the next line from that file (the newline, if any, included)," Manav's solution involves removing the newline us

RE: output in a single line

2005-05-25 Thread Manav Mathur
you forgot to chomp both your currency holders. Both contain a newline at the end, but the second one _appears_ ok to your eyes coz its the end of the line. You should chomp both (as shown below), and then format your output with any newlines if necessary... |-Original Message- |From: Vin

Re: output from system call

2005-03-08 Thread geraldine_1
Thanks everyone for the input. Getting the date output is much easier in perl than I originally thought. thanks! Geraldine > On Tue, 8 Mar 2005, Ankur Gupta wrote: > > > [EMAIL PROTECTED] wrote: > > > > > Hi, > > > Is there a way to store the output of a system call on unix? > > > > > > e

Re: output from system call

2005-03-08 Thread Chris Devers
On Tue, 8 Mar 2005, Ankur Gupta wrote: > [EMAIL PROTECTED] wrote: > > > Hi, > > Is there a way to store the output of a system call on unix? > > > > eg. system("date"); > > > use backticks... > > $date = `date`; This is, of course, exactly the wrong way to solve this problem. Perl has date f

Re: output from system call

2005-03-08 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: Hi, Is there a way to store the output of a system call on unix? eg. system("date"); I like to store the date output to a variable. The only way I know of is to open and write the output to a file and then read in to a variable. Is there a simpler way? Thanks in advance.

RE: output from system call

2005-03-08 Thread Manav Mathur
chomp($date=`date`) ; ##exploiting what Perl offers but C doesnt -Original Message- From: Ankur Gupta [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 08, 2005 10:03 PM To: [EMAIL PROTECTED] Cc: beginners@perl.org Subject: Re: output from system call [EMAIL PROTECTED] wrote: >Hi,

Re: output from system call

2005-03-08 Thread mgoland
- Original Message - From: [EMAIL PROTECTED] Date: Tuesday, March 8, 2005 11:29 am Subject: output from system call > Hi, Hello, > Is there a way to store the output of a system call on unix? > sure > eg. system("date"); my $Date = system("date"); > > I like to store the date output

Re: output from system call

2005-03-08 Thread Ankur Gupta
[EMAIL PROTECTED] wrote: Hi, Is there a way to store the output of a system call on unix? eg. system("date"); use backticks... $date = `date`; Don't forget to chomp the $date variable as I guess you just want the date, not the newline character with it... chomp($date); -- To unsubscribe, e-mail:

Re: output to one changing line

2004-09-15 Thread JupiterHost.Net
Tim Johnson wrote: That doesn't work on my WinXP, but this does... perl -e "$|=1; print \"\rLine $_\" and sleep 1 for 1..3; print \"\n\"" Its because you used double quotes instead of single quotes to surround the expression and need to escape the internal ones :) Try this (paste it exactly as i

Re: output to one changing line

2004-09-15 Thread JupiterHost.Net
Chris Devers wrote: On Wed, 15 Sep 2004, JupiterHost.Net wrote: Does the \r solution work on winders (I don't have any Winders computers) also? perl -e '$|=1; print "\rLine $_" and sleep 1 for 1..3; print "\n"' I've just successfully tested it on the Cygwin version of Perl, both cool, thanks! f

RE: output to one changing line

2004-09-15 Thread Tim Johnson
That doesn't work on my WinXP, but this does... perl -e "$|=1; print \"\rLine $_\" and sleep 1 for 1..3; print \"\n\"" -Original Message- From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 2:03 PM To: [EMAIL PR

Re: output to one changing line

2004-09-15 Thread Chris Devers
On Wed, 15 Sep 2004, JupiterHost.Net wrote: > Does the \r solution work on winders (I don't have any Winders computers) > also? > > perl -e '$|=1; print "\rLine $_" and sleep 1 for 1..3; print "\n"' I've just successfully tested it on the Cygwin version of Perl, both from a local DOS window and

Re: output to one changing line

2004-09-15 Thread JupiterHost.Net
I've seen a Damian Conway presentation where he faked out this behavior by prefixing all output with enough backspace ("\h") characters to wipe out the previous output and display a new line. I guess you mean \b, not \h :-) That must've been it then :) That does work for me under Win2k. Does the

Re: output to one changing line

2004-09-15 Thread Jenda Krynicky
From: Chris Devers <[EMAIL PROTECTED]> > On Tue, 14 Sep 2004, JupiterHost.Net wrote: > > > I'd like the line to change as it runs, sort of an animated > > delivery: > > I've seen a Damian Conway presentation where he faked out this > behavior by prefixing all output with enough backspace ("\h") >

Re: output to one changing line

2004-09-15 Thread JupiterHost.Net
Does that make sense :) ?? Yes. Just print a \r to move the cursor back to the beginning of the line. perl -e '$|=1; print "\rLine $_" and sleep 1 for 1..3; print "\n"' Nice, that does it perfectly, thanks Bob for the \r Thanks also to Chris for the same idea but different character :) Have a gdoo

RE: output to one changing line

2004-09-15 Thread Bob Showalter
JupiterHost.Net wrote: > Hello list, > > I've seen this done, but am not sure what its called or where to start > looking... > > Instead of the output of a script via CLI being: > > # perl script.pl > line1 > line2 > line3 > etc > # > > I'd like the line to change as it runs, sort of an animate

Re: output to one changing line

2004-09-14 Thread JupiterHost.Net
Chris Devers wrote: On Tue, 14 Sep 2004, JupiterHost.Net wrote: I'd like the line to change as it runs, sort of an animated delivery: I've seen a Damian Conway presentation where he faked out this behavior by prefixing all output with enough backspace ("\h") characters to wipe out the previous

Re: output to one changing line

2004-09-14 Thread Chris Devers
On Tue, 14 Sep 2004, JupiterHost.Net wrote: > I'd like the line to change as it runs, sort of an animated delivery: I've seen a Damian Conway presentation where he faked out this behavior by prefixing all output with enough backspace ("\h") characters to wipe out the previous output and display

Re: output

2004-07-07 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: Gunnar Hjalmarsson wrote: [EMAIL PROTECTED] wrote: I will have a file that contains anywhere from 1-40 strings, but I would like 4 E strings per line then a \n This seems to be the same problem as you posted about a few days ago: http://www.mail-archive.com/beginners%40per

Re: output

2004-07-07 Thread DBSMITH
:16 PM To: [EMAIL PROTECTED] cc: Subject: Re: output [EMAIL PROTECTED] wrote: > my goal will look like this: > > -w 'barcode="E00085" or barcode="E00086" or barcode="E00096" or > barcode="E00184" &g

Re: output

2004-07-06 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: my goal will look like this: -w 'barcode="E00085" or barcode="E00086" or barcode="E00096" or barcode="E00184" -w 'barcode="E00293" or barcode="E00351" or barcode="E00524" or barcode="E00584" -w 'barcode="E00587" or barcode="E00588" or barcode="E00589" or barcode="E00654"

Re: output on stderr from `next'

2004-03-29 Thread Randy W. Sims
Harry Putnam wrote: I'm getting this output on stderr from a next clause: Exiting subroutine via next at ./test_bol.pl line 101. I wondered why this happens. Is it considered an error or what? The script is lengthy so not posting it here but the next does exit a sub routine. That is why I put

Re: output on stderr from `next'

2004-03-27 Thread Harry Putnam
"Randy W. Sims" <[EMAIL PROTECTED]> writes: > Use 'return' to exit from a subroutine. Use 'next', 'redo', 'last', > and 'goto' to alter the execution path in loop constructs; they must > appear /inside/ the block owned by the loop construct or within a > sub-block. Ahh, ok thanks. Return turns o

Re: output on stderr from `next'

2004-03-27 Thread Paul Johnson
On Sat, Mar 27, 2004 at 03:24:13PM -0500, Randy W. Sims wrote: > Harry Putnam wrote: > >I'm getting this output on stderr from a next clause: > > Exiting subroutine via next at ./test_bol.pl line 101. > > > >I wondered why this happens. Is it considered an error or what? > > > >The script is len

Re: output on stderr from `next'

2004-03-27 Thread Randy W. Sims
Harry Putnam wrote: I'm getting this output on stderr from a next clause: Exiting subroutine via next at ./test_bol.pl line 101. I wondered why this happens. Is it considered an error or what? The script is lengthy so not posting it here but the next does exit a sub routine. That is why I put

Re: Output and logs

2003-09-12 Thread R. Joseph Newton
Kevin Roland Viel wrote: > Greetings, > >I have just installed ActivePerl 5.8.0.806 on a Win2000 machine. My > path variable contains C:\Perl\bin\. I have the following code in a > program > print.pl: > > $DNA="AGT"; > print $DNA; > exit; > >Where might I see the results? For instance,

RE: Output and logs

2003-09-11 Thread Paul Kraus
It won't keep a window open in run. It will run the program print the results and close the window. Usually faster then you can see. Start run cmd. The go to the directory and run the script. What kind of "log" file are you looking for? Its not going to just log itself. You can have your scripts cr

RE: Output PERL to E-mail

2003-01-03 Thread Jenda Krynicky
From: "David H. Lynch Jr." <[EMAIL PROTECTED]> > Below is a perlscript to do approximately what you asked. I found it > somewhere else on the web. Unfortunately I do not remember where, and > I have seen several similar. It is pretty basic anyway. > > #!/usr/bin/Perl > > use MIM

RE: Output PERL to E-mail

2003-01-03 Thread Danny Miller
Well, here's how I do it...using sendmail on a *nix machine. my $MAILFROM = '[EMAIL PROTECTED]'; my $MAILSUBJECT = "subject goes here"; my $MAILTO = '[EMAIL PROTECTED],[EMAIL PROTECTED]'; # or "user1\@domain.com" open(SENDMAIL, "| /usr/lib/sendmail $MAILTO") || die; print(SENDMAIL "From: $MAILFR

RE: Output PERL to E-mail

2003-01-02 Thread David H. Lynch Jr.
Below is a perlscript to do approximately what you asked. I found it somewhere else on the web. Unfortunately I do not remember where, and I have seen several similar. It is pretty basic anyway. I have a database application that outputs pay stubs to a text file. I then use another script to conv

Re: Output PERL to E-mail

2003-01-02 Thread Jenda Krynicky
From: "Derek Brinson" <[EMAIL PROTECTED]> > I have a PERL installed on a WinIIS box. This script queries a (SQL) > database, makes a few minor manipulations to that data, then builds a > small paragraph of text, from there. > > So, how do I send that text info to an e-mail address (gathered from >

Re: output help

2002-12-11 Thread Christopher D . Lewis
Does Word2000 understand Unicode? Does it default to trying to read Unicode, rather than ASCII or the like? I have used jEdit with success to read/write Unicode files. --Chris On Monday, December 9, 2002, at 02:30 PM, Raghupathy, Ramesh . wrote: Hi, I am using perl 5.8.0 for windows to

Re: output from an array

2002-11-21 Thread Paul Johnson
Jose Malacara said: > Can someone please tell me what I'm doing wrong here? > > I have a data file that looks like this: > > jason,texas,austin > tim,denver,colorado > jose,oregon,portland > > > And a script to update the last field and output the results with the > new city. Without having teste

Re: output from an array

2002-11-21 Thread Sudarshan Raghavan
On 21 Nov 2002, Jose Malacara wrote: > Can someone please tell me what I'm doing wrong here? > > I have a data file that looks like this: > > jason,texas,austin > tim,denver,colorado > jose,oregon,portland > > > And a script to update the last field and output the results with the > new city:

RE: output from an array

2002-11-21 Thread Timothy Johnson
When you print() an array, do not put it in quotes unless you want Perl to put the default record separator between each element of the array. Take out the double-quotes and it will come out the way you want. -Original Message- From: Jose Malacara To: [EMAIL PROTECTED] Sent: 11/20/02 11

Re: output to console and to logfile.

2002-09-27 Thread david
Peter Lemus wrote: > Hi, folks, > > I have a scripts that prints to a log file. I would > like to receive all messages on my terminal also when > the script runs. Please enlight me...thanks. there is a Tie::FileHandle::MultiPlex module which let's you chain multiple file hanldes like: tie

Re: output to console and to logfile.

2002-09-27 Thread david
Peter Lemus wrote: > Hi, folks, > > I have a scripts that prints to a log file. I would > like to receive all messages on my terminal also when > the script runs. Please enlight me...thanks. > > The scripts looks something like this... > #MAIN > #-

Re: output to console and to logfile.

2002-09-27 Thread Jenda Krynicky
From: Peter Lemus <[EMAIL PROTECTED]> > I have a scripts that prints to a log file. I would > like to receive all messages on my terminal also when > the script runs. Please enlight me...thanks. You may want to look at IO::Tee (on CPAN) or Local::TeeOutput ( http://Jenda.Krynicky.cz/#Local::T

RE: output to console and to logfile.

2002-09-26 Thread Timothy Johnson
The easiest way I've found: Tee("This is the text I want.\n"); sub Tee{ print OUTFILE @_; print @_; } -Original Message- From: Peter Lemus [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 5:41 PM To: [EMAIL PROTECTED] Subject: output to console and to logfile. Hi, fo

RE: Output has HEX values??

2002-06-14 Thread David Gray
> I'm using the following command to output the results to screen and a > output file: > > open(F,"tee $2 @ARGV[0].txt >CON:"); > > This works great but the output file created .txt > has a "box" > ascii character. Looks like a carraige return also. > How can I remove this? This sounds like

Re: Output has HEX values??

2002-06-12 Thread drieux
On Wednesday, June 12, 2002, at 07:07 , phumes1 wrote: > > I'm using the following command to output the results to screen and a > output file: > > open(F,"tee $2 @ARGV[0].txt >CON:"); > > This works great but the output file created .txt has a "box" > ascii character. Looks like a carraige re

Re: output to a textfile

2002-03-19 Thread Craig Sharp
How about: select DATA; Then all print statements will write to that filehandle. Craig A. Sharp Unix Systems Administrator DNS Administrator Roush Industries Office: 734-466-6286 Cell: 734-231-6769 Fax: 734-466-6939 [EMAIL PROTECTED] I have

RE: output to a textfile

2002-03-19 Thread Lakhani, Indu
print DATA "information"; -Original Message- From: Matthew Harrison [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 1:47 PM To: [EMAIL PROTECTED] Subject: output to a textfile i have opened a filehandle to a textfile with: open(DATA, ">/home/edhunter/0001.txt") or die "Could n

Re: output to a textfile

2002-03-19 Thread Jeff 'japhy' Pinyan
On Mar 19, Matthew Harrison said: >open(DATA, ">/home/edhunter/0001.txt") or die "Could not attach filehandle >/home/edhunter/0001.txt\n"; > >but what is the syntax to write into it? i have tried everthing i can find. print DATA "something\n"; And you might not want to use the name "DATA" f

Re: output to a textfile

2002-03-19 Thread Michael Stidham
print DATA "your input"; >From: Matthew Harrison <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: output to a textfile >Date: Tue, 19 Mar 2002 18:46:50 + > >i have opened a filehandle to a textfile with: > >open(DATA, ">/home/edhunter/0001.txt") or die "Could not attach filehandle >/home

RE: output to a textfile

2002-03-19 Thread Nikola Janceski
print DATA "put your stuff here"; perldoc -f print print FILEHANDLE LIST; > -Original Message- > From: Matthew Harrison [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 19, 2002 1:47 PM > To: [EMAIL PROTECTED] > Subject: output to a textfile > > > i have opened a filehandle to a text

RE: output information to a xls file

2002-02-05 Thread Wagner-David
Yes. Very easy compared to OLE. Using it for a couple of jobs which I send emails on a daily basis. Wags ;) -Original Message- From: Matt C. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 17:56 To: [EMAIL PROTECTED] Subject: Re: output information to a xls file

Re: output information to a xls file

2002-02-05 Thread Matt C.
Csv may well be easier for you, but I thought I'd shoot you this link. I've not used it, but it does what you want to do for sure. http://search.cpan.org/doc/JMCNAMARA/Spreadsheet-WriteExcel-0.34/WriteExcel.pm Matt --- Lance Prais <[EMAIL PROTECTED]> wrote: > I have a perl script that generate

RE: output information to a xls file

2002-02-05 Thread Timothy Johnson
Is formatting absolutely essential? The easiest way is to create a text file with each column separated by commas. If you make the file a .csv file, Excel will automatically open it, but you will have to apply your own formatting. -Original Message- From: Lance Prais [mailto:[EMAIL PRO

Re: output redirection

2002-01-02 Thread John W. Krahn
"Hubert Ian M. Tabug" wrote: > > Hello, Hello, > Has anyone ever tried toying or configuring fping > and parsing its output via perl? The reason why I am asking > this question is that, I am trying to capture the output > generated by the command fping -s, what fping -s does is > that i

RE: Output to email

2001-12-28 Thread SathishDuraisamy
); ... [Sathish] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, December 28, 2001 11:39 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: Output to email The value for the hash-key 'Subject' should be a scalar such as a n

RE: Output to email

2001-12-28 Thread SathishDuraisamy
PROTECTED]', Subject => substr($line, 43, 7) Message => 'Test message' ); Sathish -Original Message- From: KeN ClarK [mailto:[EMAIL PROTECTED]] Sent: Friday, December 28, 2001 11:26 AM To: Lance Prais Cc: [EMAIL PROTECTED] Subject:

Re: Output to email

2001-12-28 Thread KeN ClarK
you have the option of searching via nntp or the web-based list for old messages at http://nntp.perl.org/group/perl.beginners/ of course, that's how i spend my time, since i'm very NEW, and hence don't know the answer to your ?... k On Fri, 28 Dec 2001, Lance Prais wrote: > > I am sorry I a

Re: output into a csv file

2001-12-19 Thread John W. Krahn
"Scott.Lutz" wrote: > > This is getting a touch off base from where I wanted to go, but the jist > of what I started with is this. > Open a .csv file, enter every record into the array, one at a time, then > copy the first value to the third last value, then print this value back > to a new .csv

RE: output into a csv file

2001-12-19 Thread scott.lutz
ot;\n"; push (@output, "@string"); print "Line $count parsed with FIRST -> $string[0] and LAST -> $string[34]\n"; # visual aide } $count++; } print FOUT @output; close (FOUT); -Original Message-

Re: output into a csv file

2001-12-18 Thread John W. Krahn
Jenda Krynicky wrote: > > But don't ever forget to reset it back! : > > { local $, = ", "; > print @output; > } > > IMHO using join() is safer. I'd only use something like this if I > needed to interpolate several arrays in a HERE-DOC string. I'd > change $" then of cour

RE: output into a csv file

2001-12-18 Thread Jenda Krynicky
From: Carl Rogers <[EMAIL PROTECTED]> > At 02:18 PM 12/17/2001 -0800, Scott Lutz wrote: > >I was looking for more of a way to print out the array, with > >inserting a comma (,) between every array value, like while ( @output > >) { > > print $output[position] ."," > >} > > You can also as

RE: output into a csv file

2001-12-17 Thread Carl Rogers
At 02:18 PM 12/17/2001 -0800, Scott Lutz wrote: >I was looking for more of a way to print out the array, with inserting a >comma (,) between every array value, like >while ( @output ) { > print $output[position] ."," >} You can also assign the special variable "$," the value "," and it wi

RE: output into a csv file

2001-12-17 Thread Jenda Krynicky
From: "Scott Lutz" <[EMAIL PROTECTED]> > I was looking for more of a way to print out the array, with inserting > a comma (,) between every array value, like while ( @output ) { > print $output[position] ."," > } > > or something like that, > I just figure that there would be

RE: output into a csv file

2001-12-17 Thread Scott Lutz
rt Pacific Online http://www.paconline.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: December 17, 2001 1:35 PM To: Scott Lutz; [EMAIL PROTECTED] Subject: RE: output into a csv file Scott, I've found the AnyData module (search CPAN for AnyData) to b

RE: output into a csv file

2001-12-17 Thread John . Brooking
Scott, I've found the AnyData module (search CPAN for AnyData) to be great for CSV. It can read and write CSV or XML, either tied to hash variables or through a DBI interface, as well as reading and writing to HTML tables. I've noticed that it uses the following rules for CSV: * If field to wr

Re: output file for download

2001-07-25 Thread Will Crain
Tim, I believe I know what you are asking. Normally, CGI returns data in the form of text/html. This is indicated by including the line Content-type: text/html\n\n in the output of your CGI application. This instructs the receiving agent to treat all data that follows as html text. I believ

Re: output file for download

2001-07-24 Thread Rachel Coleman
> >you just need to provide a link to your file. > >simply,click here to download my file > >and the browser,itself will automatically bring that dialog box, > >whenever user clicks on "Click here to download my file". > > I would like to create the file dynamically with a cgi program and send it

Re: output file for download

2001-07-24 Thread Tim Keefer
I would like to create the file dynamically with a cgi program and send it to the browser rather than placing an href to a static file. This may not even be possible, but it would simplify things on my end. At 04:40 PM 7/24/2001, you wrote: >you just need to provide a link to your file. >simp

Re: output of a command to a file

2001-07-24 Thread Abdulaziz Ghuloum
Hello, There is nothing wrong in your perl program. The problem is that not all nic servers produce the same output. The line with "created on" exists for some names only, not all. I tried yahoo.com which had it and netscape.com which didn't have it. So, you should figure out a better way to

RE: output of a command to a file

2001-07-24 Thread Venkat Mohan
This will work. open outfile ">>outfile.txt"; open cmdoutput " $command |"; while() { print outfile; } close cmdoutput; close outfile -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 12:48 PM To: Perl Beginners Subject: output of a comman

RE: output of a command to a file

2001-07-24 Thread Steve Swords
the man page for the open() function has a section on doing exactly what your asking for... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: output in specified order

2001-06-22 Thread Martin van-Eerde
If the hash is going to be built in the order that you want the output you could use the following module from CPAN Tie::IxHash use Tie::IxHash tie %the_hash, "Tie::IxHash"; ... populate the hash in the required order... foreach my $key ( %the_hash ) { print $key, " ", $the_hash{ $

Re: output in specified order

2001-06-22 Thread Aaron Craig
At the risk of being over simplistic, can you just add a number_ to the front of your hash key? my $rhHash = { '4_B' => "Fourth element", '2_A' => "Second element", '1_D' => "First element", '3_F' => "Third element", }; print "$rhHash->{$_}\

Re: output filenames as inputs

2001-06-22 Thread Jos Boumans
on that note, you can also use the getopt module, that lets you specify switches like you're used to on any linux system as follows: script.pl -i input.txt -o output.txt look at perldoc getopt for a simple description regards, Jos Boumans "Brett W. McCoy" wrote: > On Thu, 21 Jun 2001, Pedro A

Re: output filenames as inputs

2001-06-21 Thread Brett W. McCoy
On Thu, 21 Jun 2001, Pedro A Reche Gallardo wrote: > I am writing a program that creates a file and write some data into it > using the usual > open (OUT, ">filename") or die "can't open file '$file'\n"; way > > but, how can I make the program to create a file with a name that is > given as one o

RE: output in specified order

2001-06-21 Thread Yacketta, Ronald
3f", $usr / ($usr + $sys + $wt + $idl); printf ",%1.3f", $sys / ($usr + $sys + $wt + $idl); printf ",%1.3f", $wt / ($usr + $sys + $wt + $idl); printf ",%1.3f,%d\n", $idl / ($usr + $sys + $wt + $idl), $avg; } yeah yeah yeah... I'm a newb so sue me! > -Ori

Re: output in specified order

2001-06-21 Thread Jos I. Boumans
n" <[EMAIL PROTECTED]> To: "Yacketta, Ronald" <[EMAIL PROTECTED]> Cc: "Beginners (E-mail)" <[EMAIL PROTECTED]> Sent: Thursday, June 21, 2001 9:04 PM Subject: Re: output in specified order > On Jun 21, Yacketta, Ronald said: > > >I have a th

Re: output in specified order

2001-06-21 Thread Jeff 'japhy' Pinyan
On Jun 21, Yacketta, Ronald said: >I have a the following hash that _MUST_ be outputed in a specified order >every time. You see, that's an ugly combination. You might find a pseudohash useful, but they're kinda ugly. Perhaps you want the Tie::IxHash module. -- Jeff "japhy" Pinyan [EMAI

  1   2   >