print, sleep, print.....

2002-02-08 Thread James Kelty
While looking over the 'print over prior print' thread, I found that, as it should be, perl will print out as fast as it can. Below code #!/usr/bin/perl -w $count = 1; while(1) { $count++; print "${count}\r"; } So? Great, right? Well, what if I want to

print over prior print

2002-02-08 Thread Jesse Ahrens
I recall doing this in C a long long time ago, but I've forgotten most of my C. Is it possible and how would you print say an integer from a count++ and have the next increment print over the last? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: print, sleep, print.....

2002-02-08 Thread Chas Owens
Look at perldoc -q flush. On Fri, 2002-02-08 at 12:50, James Kelty wrote: > While looking over the 'print over prior print' thread, I found that, as it > should be, perl will print out as fast as it can. Below code > > #!/usr/bin/perl -w > > $count = 1; &g

Re: print, sleep, print.....

2002-02-08 Thread Jason Purdy
I saw this too and immediately thought of flushing... Try adding this before you go into the while loop: $|++; Jason If memory serves me right, on Friday 08 February 2002 12:50, James Kelty wrote: > While looking over the 'print over prior print' thread, I found that, as it >

Re: print, sleep, print.....

2002-02-08 Thread Chas Owens
It is probably better to say { #limit the scope of the change to $| local($|) = 1; while (1) { $count++; print "${count}\r"; } } On Fri, 2002-02-08 at 13:36, Jason Purdy wrote: > I saw this too and immediately though

RE: print over prior print

2002-02-08 Thread Nikola Janceski
print "First number\r"; print "Second number\n"; ## this has too be longer than the first it overwrites what was there. -Original Message- From: Jesse Ahrens [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:12 PM To: [EMAIL PROTECTED] Subject: print

RE: print over prior print

2002-02-08 Thread McCollum, Frank
in perl... $count++; print "${count}\r"; -Original Message- From: Jesse Ahrens [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:12 PM To: [EMAIL PROTECTED] Subject: print over prior print I recall doing this in C a long long time ago, but I've forgotten mo

creepy print() that doesnt print.

2006-12-13 Thread Gregory Machin
ined($line=$file->read)) { print ("$line"); << this line prints fine print ("hello"); << but this one does not print at all } i have allso tried print "hello"; but the result is the same.. I have tried ping ("$line hello"); but i

print <

2003-03-26 Thread Ramón Chávez
Hello boys and girls. I have sen this kind of expression: - print <

print!?!

2003-07-04 Thread Charles Scheepers
Hi I wrote a program to read hex data and format the records and then output the formatted records in ASCII format to a file. The program is supposed to work on Win32 and UNIX (HP-UX). Everything works fine except for information (stats and errors) that I want to print to the screen

print

2002-06-06 Thread David vd Geer Inhuur tbv IPlib
Hi, I am struggling with something very stupid. I know the print syntax, but I would like to use the "print <

print<

2001-10-31 Thread Etienne Marcotte
When I put warnings on and have a block of printed text with print<

Print

2006-05-18 Thread Kaushal Shriyan
Hi All I have perl.chm file Learning Perl, How do i print all the chapters and all pages in the perl.chm file when i click on print, only one page gets selected and in the print dialog I can see only one page How do i select all the pages so that I can print the entire book Kaushal -- To

Re: creepy print() that doesnt print.

2006-12-13 Thread D. Bolliger
t;; my $name='/etc/openvpn/logs/CT-NET.log'; > my $maxinterval=10 ; > my $adjustafter=7 ; > > $file=File::Tail->new(name=>$name, maxinterval=>$maxinterval, > adjustafter=>$adjustafter); > while (defined($line=$file->read)) { > print (&qu

print with => ??

2001-04-23 Thread David Gilden
Hello, Sorry to ask this, as I am quite new at this. And the online class that I am just now finishing has lots of bad code for examples! >From this list: print "'$file' => '$newfile'\n"; ^ What does this line mean, this

print statment

2001-04-23 Thread David Gilden
Original from the class: print "\n"; Is this bad style? print '',"\n"; better? print ''. "\n"; I do believe that these 3 statements are all equivalent. Thanks Dave

Print post_https

2001-06-21 Thread K Old
Hello, I'm using OpenSSL with Net::SSLeay and have a need to print the actual string that is being generated by the post_https() function. I have tried the following : print post_https($host, $port, $script, '', %form_data); I get 10 from doing this. I'd like to get the a

Re: print <

2003-03-26 Thread Stefan Lidman
Ramón Chávez wrote: > > Hello boys and girls. > > I have sen this kind of expression: > > ----- > print < ## Some HTML here > EOF > --- they are called "here documents" perldoc -q "here documents" /Stefan

RE: print <

2003-03-26 Thread Ramón Chávez
Thank you Stefan -rm- - Original Message - From: Stefan Lidman <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 26, 2003 10:07 AM Subject: Re: print < Ramón Chávez wrote: > > > > Hello boys and girls. > > >

print function?

2003-03-29 Thread Jasmine
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi I dont understand exactly how does the print function work. I have a script that keeps complaining: Use of uninitialized value in concatenation (.) or string at ./report.pl line 33. when i put -> print "$srcip $dstip \n"; But the

RE: print!?!

2003-07-07 Thread Dan Muey
tion (stats and > errors) that I want to print to the screen. > > > > For a statement like: > > print "Number of records in file:\t\t$reccnt\n"; What is it printing to? A browser, Console, TK Window? Can you just do a simple : print "Howdy World"

RE: print!?!

2003-07-08 Thread Charles Scheepers
The program prints to a number of different places. Files --> data output and some logs. Then I also need to print some error info to the terminal (STDOUT). It is this last part that is not happening on UNIX, but it does on DOS. Regards, Charles Scheepers -Original Message- F

RE: print!?!

2003-07-08 Thread Dan Muey
> The program prints to a number of different places. Files --> > data output and some logs. Then I also need to print some > error info to the terminal (STDOUT). It is this last part > that is not happening on UNIX, but it does on DOS. What is output when you run it from the c

RE: print!?!

2003-07-08 Thread Bill Akins
ome logs. Then I also need to print some error info to the terminal (STDOUT). It is this last part that is not happening on UNIX, but it does on DOS. Regards, Charles Scheepers -Original Message- From: Dan Muey [ mailto:[EMAIL PROTECTED] Sent: 07 July 2003 17:20 To: Charles Scheepers;

FW: print!?!

2003-07-09 Thread Charles Scheepers
Dan Here is the excerpt of my program that does not print to the terminal window when run on UNIX: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

RE: print!?!

2003-07-09 Thread Dan Muey
> Dan > > Here is the excerpt of my program that does not print to the > terminal window when run on UNIX: > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>&

print @$lines

2002-10-21 Thread Jerry Preston
Hi! How would you write a foreach loop to go through @$lines on line at a time? Thanks, Jerry

Sco Print

2003-08-20 Thread Paul Kraus
Is there a way using perl that I can send a text file to a sco openserver print cue. On the server I would print the file using cat filename.txt | lp -dP5 But the files are not on the server and I would like to automate the process. There is a batch of reports that I have to print each month. I

REPOST - print ;

2003-09-05 Thread Edward Yang
owing code: print ; or print ; I get only one line of output text: c:./program I'm a beginner on Perl, though I've written several scripts manipulating Web sites and managing downloads. I wonder if it is a bug on Windows system or I'm doing something wrong. Thanks. Edward -- To un

Print Question

2002-04-05 Thread Balint, Jess
Hello all. I have been working on this all day. I am trying to print out numbers 1 through 10 as this loop progesses. For some reason, it doesn't print the numbers until the end of the loop. The $done variable is set to 1 by the getUniqRand() function once certain conditions are met. Every

print hash

2002-04-23 Thread Stefan.Haberer
Hello everybody, my code below should read in data from a file info.txt into a hash, the sub print_hash should print all hash-elements. actually it only prints the last key-value-pair. Does anybody see the mistake?Thank you for your help!!! Greetings Habi use strict; my %hash

RE: print

2002-06-06 Thread Nikola Janceski
like this print < -Original Message- > From: David vd Geer Inhuur tbv IPlib > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 06, 2002 9:20 AM > To: [EMAIL PROTECTED] > Subject: print > > > > Hi, > > I am struggling with something very stupid. &g

Re: print

2002-06-06 Thread Jenda Krynicky
Date sent: Thu, 6 Jun 2002 15:19:48 +0200 (METDST) From: David vd Geer Inhuur tbv IPlib <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: print > > Hi, > > I am struggling with something very stupid. > I

RE: print

2002-06-06 Thread Nikola Janceski
Forgot to meantion where the docs are: perldoc perlfaq4(search for 'Why don't my < -Original Message- > From: Nikola Janceski [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 06, 2002 9:24 AM > To: 'David vd Geer Inhuur tbv IPlib'; [EMAIL PROTECTED] &

Re: print

2002-06-06 Thread drieux
On Thursday, June 6, 2002, at 06:19 , David vd Geer Inhuur tbv IPlib wrote: > > Exa: > > print < > All these lines > will have to be > printed > until I give an: > > EOF > cf perldoc -q "Why don't my <

Don't print...

2001-10-03 Thread Daniel Falkenberg
List, Can some one tell me why it is that the following code prints the results on the screen when I don't have the print command in there at all??? $shell = ifconfig("ppp0"); cp($shell, "/etc/ppp/ppp"); Regards, Dan == VINTEK CONSULTING

Re: print<

2001-10-31 Thread RaFaL Pocztarski
Etienne Marcotte wrote: > > print< or print<<"END"; > > it gives me a warning "Use of uninitalized value at (filename) > (linenumber) How does your text look like? Remember that variables are interpolated in your text, if you don't want that use

Re: print<

2001-10-31 Thread Etienne Marcotte
Well it's an html print function sub PrintTopOfPage{ my $body = $_[0]; print< ... END } It works fine, variables are printed (it prints the value of the variable, which is what I want), but I get that warning. I don't have the warning when using individual print statements.. b

print chomp

2001-11-29 Thread Sukhpreet Singh
Why can't I do this? print chomp reverse(@lines = ); or print chomp(reverse(@lines = )); I get Can't modify reverse in chomp at ex3-1.pl line 3, near "))" Execution of ex3-1.pl aborted due to compilation errors. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Using print

2001-12-26 Thread Lance Prais
I am using the following statment to try to print a sub string of a line but print (substr($line, 42, 7)); or print substr($line, 42, 7); but getting the following error: syntax error at emailagent line 16, near ");" Can anyone tell me what I am doing wrong? Thank you Lanc

print reference

2008-06-30 Thread onlineviewer
Hello All, Can someone tell me the proper syntax to print out the value in a reference? Thank you.,, my $string = ''; open my $scalar_fh, '>>', \$string; my $log_message = "here is my string..."; print $scalar_fh $log_message; foreach my $fh ($scalar_fh

about "print"

2008-12-29 Thread xie ningde
I'm a new perl user. I was trying to print an array by using print @array and print "@array". Is it supposed to output the same thing? I got the different output. EX: @array=qw/v1 v2 v3/, the output for print @array will be v1v2v3 while it will be v1 v2 v3 in the other case. The di

html print

2010-04-12 Thread Chris Coggins
I'm having trouble getting a piece of data from a form input to print in html. Here's the relevant portion of my code sub subroutine { my($hash) = shift; my($data) = "$hash->{'expl'}"; print "Content-type: text/html\n\n"; print <This employee has

print file

2006-05-08 Thread badrinath chitrala
Hi open FILE, "file.txt" or die $!; while () Sombody please tell me why do i get the message as below if i want to print the contents of text file Name "main::FILE" used only once: possible typo at nl.plx line3. 1:f:/file.txt and my file is not executed (i did not get

print file

2006-05-10 Thread Rustam Hamidullin
open FILE, "){ ... } -- Приятной работы... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

print file

2006-05-10 Thread Rustam Hamidullin
$txt = `type file.txt`; ... -- Приятной работы... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Print

2006-05-18 Thread David Romano
Hi Kaushal, On 5/18/06, Kaushal Shriyan wrote: I have perl.chm file Learning Perl, How do i print all the chapters and all pages in the perl.chm file How did you get the book in .chm format? I only know of it being available on paper and on safari.oreilly.com. It's a great book (I learned

RE: Print

2006-05-19 Thread Nagasamudram, Prasanna Kumar
Hi Kaushal The only alternative I can think of is to convert your chm file to pdf or rtf and then attempt a print. You can get the convert from http://www.freedownloadscenter.com/Best/free-chm-to-pdf.html Also can you please send me the chm file? It can be quite handy to me. Thanks

RE: Print

2006-05-19 Thread Saboo, Nandakishore
Hi >Hi Kaushal >The only alternative I can think of is to convert your chm file to pdf >or rtf and then attempt a print. >You can get the convert from >http://www.freedownloadscenter.com/Best/free-chm-to-pdf.html >Also can you please send me the chm file? >It can be

print main:: ....

2005-10-13 Thread Gerard Robin
Hello, when I run this script I get the results: #!/usr/bin/perl #obj1.pl # package Useless; use warnings; sub method { return "sometimes I don't understand Perl and often I am wrong" } my $obj = bless []; print main::method, "\n"; print main::, "\n"; print

grabbing print output

2005-02-07 Thread Ing. Branislav Gerzo
Hi all, I have tricky question, and I await answer will be not so simple, here is snippet: open (PIPE, "|-", "convert -negate -modulate 200,0 -negate - pbm:- | gocr -") or warn "$!\n"; print PIPE $file; #file is image content close PIPE; prints to STDOUT eve

Re: print with => ??

2001-04-23 Thread John Joseph Trammell
On Mon, Apr 23, 2001 at 12:33:00PM -0400, David Gilden wrote: > Hello, > Sorry to ask this, as I am quite new at this. > And the online class that I am just now finishing has > lots of bad code for examples! > > >From this list: > > pri

Re: print with => ??

2001-04-23 Thread M.W. Koskamp
- Original Message - From: David Gilden <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 23, 2001 6:33 PM Subject: print with => ?? > Hello, > Sorry to ask this, as I am quite new at this. > And the online class that I am just now finishing ha

RE: print with => ??

2001-04-23 Thread King, Jason
David Gilden writes .. >Sorry to ask this, as I am quite new at this. >And the online class that I am just now finishing has >lots of bad code for examples! > >>From this list: > > print "'$file' => '$newfile'\n"; > ^^

RE: print statment

2001-04-23 Thread King, Jason
David Gilden writes .. >Original from the class: > >print "\n"; > > >Is this bad style? yep .. avoid backwhacks at all costs - that's my opinion >print '',"\n"; > >better? yep .. much better >print ''. "\

RE: print statment

2001-04-24 Thread Paul
And for those with embedded JavaScript to write, in which you already have too many quotes: =o) print< wrote: > David Gilden writes .. > > >Original from the class: > > > >print " checked>\n"; > > > > > >Is this bad style? >

sleep () and print ()

2001-06-16 Thread Jim Gallott
pause one second, do the 2 line returns, wait another second, then do all the printing together. I obviously have something wrong, but don't know what. Section of code: sleep (1); print "\n\nThe result is:"; sleep (1); print "\n\nI was home alone. etc, etc. -- Jim Gallot

print a string

2001-08-20 Thread Robert_Collins
The following line of code causes 2-lines of output to the file: print LOG "qcfg_dt='$qcfg_dt' \n"; $qcfg_dt contains Monday, August 20, 2001 8:53:26 PM The second quote is written on the next line. In the file the information looks like this: qcfg_d

Re: print function?

2003-03-29 Thread Wiggins d'Anconia
Jasmine wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi I dont understand exactly how does the print function work. I have a script that keeps complaining: Use of uninitialized value in concatenation (.) or string at ./report.pl line 33. when i put -> print "$srcip $dstip \n

print command help

2003-07-22 Thread Josh Corbalis
I'm writing a webmin module and I'm trying to add a search function in right now but after I search for it and try to display the output it has a problem with the way the output is formatted. print "searchtest<10>"; will print searchtest<10> print "searchte

Print in colors.

2002-10-03 Thread Janfek Esquivel
Does anyone know how do I set the print option to make a text appear in different colors? Thanks in advance. _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: print @$lines

2002-10-21 Thread Yevgeny Menaker
Hi, Jerry! Is this what you mean: # lines.pl use strict; my @lines = ("Line 1", "Line 2", "Line 3"); foreach my $line (@lines) { print $line, "\n"; } # Will output: Line 1 Line 2 Line 3 Yevgeny. From: "Jerry Preston" <[EMAIL PROTECTE

Re: print @$lines

2002-10-21 Thread John W. Krahn
Jerry Preston wrote: > > Hi! Hello, > How would you write a foreach loop to go through @$lines on line at a time? foreach ( @$lines ) { John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

HELP W. Print

2002-11-28 Thread [EMAIL PROTECTED]
Hi, How do i solve this Say i have an variable $number witch has the integer value of 16.526899874 I wan to print it formatted like 16.52 (only 2 decimals) How do i do this with the basic print "$number"; command? Is there an "format string" like ##.## ? Thanks in advance -

Strange "print" syntax

2002-12-09 Thread Rajendra Babu, Praveen
Hi All !!! The below code works fine: $FH = $file_IDS[$z]; print $FH "$splt_line[$loctn[$i]],"; print $FH "$splt_line[$loctn[$i+1]]\n"; $z++; But when I remove the temporary variable $FH and use the $file_IDS[$z] directly in the print state

Print Format Problem

2004-03-12 Thread Jeff Borders
I've written a trivial program to print avery labels. One that allows me to specify how many rows to print (when I don't need 30 labels). The problem is that I don't want to print a blank line on a 3 line label. I thought the "~" would take care of this in format, but n

RE: Sco Print

2003-08-20 Thread Dan Muey
> Is there a way using perl that I can send a text file to a > sco openserver print cue. On the server I would print the > file using cat filename.txt | lp -dP5 Howdy, Get file contents from db into a variable I'd say open a pipe to lp -dP5 (Use the actual path to avoid headac

RE: Sco Print

2003-08-20 Thread Dan Muey
erl Net::FTP a look HTH Dmuey > > -Original Message- > From: Dan Muey [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 20, 2003 1:38 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: Sco Print > > > > Is there a way using perl that I can send a

RE: Sco Print

2003-08-20 Thread Paul Kraus
PERFECT!!! Thanks! -Original Message- From: Dan Muey [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 2:10 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Sco Print > The script is not going to be run from the sco server. :) > That's my problem if I co

RE: Sco Print

2003-08-20 Thread Paul Kraus
ubject: RE: Sco Print > Is there a way using perl that I can send a text file to a > sco openserver print cue. On the server I would print the > file using cat filename.txt | lp -dP5 Howdy, Get file contents from db into a variable I'd say open a pipe to lp -dP5 (Use the actual

RE: Sco Print

2003-08-20 Thread Bob Showalter
Paul Kraus wrote: > Is there a way using perl that I can send a text file to a sco > openserver print cue. On the server I would print the file using cat > filename.txt | lp -dP5 > > But the files are not on the server and I would like to automate the > process. There is a bat

Re: REPOST - print ;

2003-09-05 Thread Robert Citek
Hello Edward, At 05:07 PM 9/5/2003 +0800, Edward Yang wrote: >The problem is I do not get correct result from the following code: >print ; >or >print ; I don't use perl in Windows, but I can simulate a similar result on Linux or Mac OS X: mkdir "foo bar" cd &

RE: REPOST - print ;

2003-09-05 Thread Hanson, Rob
Windows is a little weird here because of the way long filenames are supported. You need to use the short name of the directory, which is the first 6 letters - a tilda - and a number (always 1, unless there multiple files with the same first 6 chars). This works for me: print ; Rob

RE: REPOST - print ;

2003-09-05 Thread Hanson, Rob
This also works and is more portable... my $dir = 'C:/Program Files'; opendir DIR, $dir; print map {"$dir/$_"} grep {/.+\..+/} readdir(DIR); closedir DIR; Rob -Original Message- From: Hanson, Rob Sent: Friday, September 05, 2003 8:38 PM To: [EMAIL PROTECTED]

Re: REPOST - print ;

2003-09-05 Thread Bob Showalter
t; > The problem is I do not get correct result from the following code: > print ; > or > print ; > > I get only one line of output text: > c:./program > > I'm a beginner on Perl, though I've written several scripts > manipulating Web sites and managing dow

Re: Print Question

2002-04-05 Thread Brett W. McCoy
On Fri, 5 Apr 2002, Balint, Jess wrote: > Hello all. I have been working on this all day. I am trying to print out > numbers 1 through 10 as this loop progesses. For some reason, it doesn't > print the numbers until the end of the loop. The $done variable is set to 1 > b

Re: Print Question

2002-04-05 Thread Chas Owens
On Fri, 2002-04-05 at 14:37, Balint, Jess wrote: > Hello all. I have been working on this all day. I am trying to print out > numbers 1 through 10 as this loop progesses. For some reason, it doesn't > print the numbers until the end of the loop. The $done variable is set to 1 > b

RE: Print Question

2002-04-05 Thread Balint, Jess
Cool. Works great. Thanks guys! -Original Message- From: Chas Owens [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 3:11 PM To: Balint, Jess Cc: '[EMAIL PROTECTED]' Subject: Re: Print Question On Fri, 2002-04-05 at 14:37, Balint, Jess wrote: > Hello all. I have be

Re: Print Question

2002-04-05 Thread Jonathan E. Paton
> Hello all. I have been working on this all day. Excellent, you'll appreciate my 5 minutes of effort all the more :P > I am trying to print out numbers 1 through 10 as this loop progesses. > For some reason, it doesn't print the numbers until the end of the loop. If you hav

RE: Print Question

2002-04-05 Thread Balint, Jess
do any good for me ( if I understand tied arrays ). -Original Message- From: Jonathan E. Paton [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 3:24 PM To: [EMAIL PROTECTED] Subject: Re: Print Question > Hello all. I have been working on this all day. Excellent, you'll app

RE: Print Question

2002-04-05 Thread Jonathan E. Paton
> With alot of calls to the function (approx 10% more > than #'s in array, so ALOT ), would it be quicker > to just put the function stuff in the do loop? Yes, probably quite a bit. If the function stuff isn't useful elsewhere then it would be significatly faster. Function calls in Perl are dea

Re: print hash

2002-04-23 Thread Sudarsan Raghavan
[EMAIL PROTECTED] wrote: > Hello everybody, > my code below should read in data from a file info.txt into a hash, the sub > print_hash should print all hash-elements. actually it only prints the last > key-value-pair. Does anybody see the mistake?Thank you for your help!!! >

print $body update . . . .

2002-06-14 Thread tom poe
range operator is used to discard the first five lines and print # line 6 to the eof. use strict; my $file = '../perlStuff/email.txt'; open (IN, "<$file") or die "Can't open $file: !$\n"; while () { if (6 .. eof){ print; } } close IN; As a way to explain thi

Re: Don't print...

2001-10-03 Thread Mel Matsuoka
At 04:02 PM 10/04/2001 +0930, Daniel Falkenberg wrote: >List, > >Can some one tell me why it is that the following code prints the >results on the screen when I don't have the print command in there at >all??? > >$shell = ifconfig("ppp0"); >cp($shell, "

Re: print chomp

2001-11-29 Thread Greg Meckes
How about: print reverse(chomp @lines = ); ? Greg --- Sukhpreet Singh <[EMAIL PROTECTED]> wrote: > Why can't I do this? > > print chomp reverse(@lines = ); > > or > > print chomp(reverse(@lines = )); > > I get > > Can't modify reverse in c

RE: print chomp

2001-11-29 Thread Sukhpreet Singh
hmmm...interesting. it doesn't give me that error but this one lined perl program ends after the first line of input. doesn't wait for EOF i.e. any thoughts? #/usr/bin/perl print reverse(chomp @lines = ); >>perl ex3-1.pl hello hello >> -Original Message- Fro

RE: print chomp

2001-11-29 Thread Jeff 'japhy' Pinyan
On Nov 29, Sukhpreet Singh said: >hmmm...interesting. it doesn't give me that error but this one lined perl >program ends after the first line of input. doesn't wait for EOF i.e. any >thoughts? Due to a bug in Perl, sadly. >print reverse(chomp @lines = ); That gets parse

how to print

2001-12-20 Thread Jerry Preston
Hi, I am using Perl with CGI on a SUN box. I want to be able to send to the local user running my script a report directly to their printer. What is involved? What does Perl have to support this? Thanks, Jerry -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

RE: Using print

2001-12-26 Thread Bob Showalter
> -Original Message- > From: Lance Prais [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 26, 2001 5:24 PM > To: [EMAIL PROTECTED] > Subject: Using print > > > I am using the following statment to try to print a sub > string of a line > bu

Re: Using print

2001-12-26 Thread Michael Fowler
On Wed, Dec 26, 2001 at 02:24:16PM -0800, Lance Prais wrote: [snip] > print (substr($line, 42, 7)); [snip] > print substr($line, 42, 7); > > but getting the following error: > > syntax error at emailagent line 16, near ");" The code snippets you've shown

Print / overwrite line

2002-01-03 Thread Gary Hawkins
How can I clear a line before replacing it? Am doing \r and overwriting, but sometimes the text that was there previously is longer than the new text. gary -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: print reference

2008-06-30 Thread John W. Krahn
onlineviewer wrote: Hello All, Hello, Can someone tell me the proper syntax to print out the value in a reference? I assume you mean how to dereference a reference? perldoc perlref Thank you.,, my $string = ''; open my $scalar_fh, '>>', \$string; my $log_me

Re: print reference

2008-06-30 Thread Rob Dixon
onlineviewer wrote: > > Can someone tell me the proper syntax to print out the value in a > reference? > Thank you.,, I'm not sure what you mean. Look: > my $string = ''; > open my $scalar_fh, '>>', \$string; So you have opened a file handle to

Re: print reference

2008-07-01 Thread onlineviewer
On Jun 30, 5:38 pm, [EMAIL PROTECTED] (Rob Dixon) wrote: > onlineviewer wrote: > > > Can someone tell me the proper syntax to print out the value in a > > reference? > > Thank you.,, > > I'm not sure what you mean. Look: > > > my $string = '

Question about print

2008-07-07 Thread loody
Dear all: below is what I excerpt form "perl cook book". What does <<"EOF" mean at the end of print? thanks for your help, miloody open(SENDMAIL, "|/usr/sbin/sendmail -oi -t -odq") or die "Can't fork for sendmail: $!\n"; print SENDMAIL <

Re: about "print"

2008-12-29 Thread Jeff Peng
2008/12/30 xie ningde : > I'm a new perl user. I was trying to print an array by using print @array > and print "@array". Is it supposed to output the same thing? I got the > different output. EX: @array=qw/v1 v2 v3/, the output for print @array will > be v1v2v3 while

RE: about "print"

2008-12-29 Thread sanket vaidya
oth cases. Similarly $"="a" will print v1av2av3. Thanks Sanket Vaidya -Original Message- From: xie ningde [mailto:n.d.ningde...@gmail.com] Sent: Tuesday, December 30, 2008 10:20 AM To: beginners@perl.org Subject: about "print" I'm a new perl user. I was

Re: about "print"

2008-12-30 Thread John W. Krahn
xie ningde wrote: I'm a new perl user. I was trying to print an array by using print @array and print "@array". Is it supposed to output the same thing? I got the different output. EX: @array=qw/v1 v2 v3/, the output for print @array will be v1v2v3 while it will be v1 v2 v3 in

AW: html print

2010-04-12 Thread Thomas Bätzler
Chris Coggins asked: > I'm having trouble getting a piece of data from a form input to print > in html. Here's the relevant portion of my code > > sub subroutine { > my($hash) = shift; > my($data) = "$hash->{'expl'}"; > > print "C

Re: html print

2010-04-12 Thread Shlomi Fish
Hi Chris, A few comments on your code - some of which may help you. On Monday 12 Apr 2010 12:06:16 Chris Coggins wrote: > I'm having trouble getting a piece of data from a form input to print in > html. Here's the relevant portion of my code > > sub subroutine { I hop

  1   2   3   4   5   6   7   8   9   10   >