Printing ?

2004-12-09 Thread Paul Ohashi
Hi All, Is there a way to 'print' to STDOUT and a with one line? Something like:echo "Some text" | tee - a somefile.out -Paul

printing

2003-04-03 Thread Eric Walker
I can't remember how to setup a print statement to say print 60 "#"; I think its something like print ("\*",40); please help Eric -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Printing

2001-05-14 Thread justin todd
Hi. I am looking for a way to print just a certain in a browser. Is this possible? Kind Regards Justin

tabular printing

2009-10-05 Thread Andreas Moroder
Hello, I want pro print to screen two strings. The problem ist that the length of the strings are variable, so I get a unreadable output. Even using \t does not help because the lenght can vary from 5 to 15 characters. Is there a simple way to expand the first columnt to a fixex size. Thanks

printing hashes

2012-03-25 Thread Chris Stinemetz
Below is snippet from Data::Dumper dump from a hash I have. What is the best approach for only printing the hashes that have the value 'ND' or hashes that have different values such as '149' does below. '149' => { '05&#x

Re: Printing ?

2004-12-09 Thread Randy W. Sims
Paul Ohashi wrote: Hi All, Is there a way to 'print' to STDOUT and a with one line? Something like:echo "Some text" | tee - a somefile.out -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

printing hash

2002-12-05 Thread Duarte Cordeiro
Hi, I have some data in a hash table, and I would like to print it in the same order as I created it. According to the user manual, "the result of foreach $key (keys %hash) is random-like". I tried it, and :) its true. Any way I can print it like I want ? Example: I need to print in the same or

Weird printing . . .

2003-10-22 Thread Jason
I have a file formatted like this: #error0 # This indicates that there was no # error whatsoever. #error0 #error1 # You have specified no arguments, # so the program ran the 'PrintHelp' # subroutine and then died. #error1 #error2 # If you do not specify a type, then # there is no way

RE: printing

2003-04-03 Thread Paul Kraus
print "#"x60; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 11:43 AM To: [EMAIL PROTECTED] Subject: printing I can't remember how to setup a print statement to say print 60 "#"; I think its something like

Re: printing

2003-04-03 Thread John W. Krahn
Eric Walker wrote: > > I can't remember how to setup a print statement to say print 60 "#"; > I think its something like > > print ("\*",40); Use the x operator to multipy strings: print '*' x 40; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

HASH PRINTING

2003-04-03 Thread Eric Walker
I have a HASH with a mixture of single, double and triple layers. exampl hash of hash of array's etc I try to dump and see values of the entire db but I get pointers and memory addresses. Below is my code Please help. foreach my $item (keys %hData){ print ("$item: $hData{$item}\n"); } Thank

Printing Arrays

2003-09-22 Thread Desmond Lim
I have 3 arrays @arr1, @arr2 and @arr3. I need to print them into the same file and I'm doing this. open FILE, ; print FILE "@arr1\n"; print FILE "@arr2\n"; print FILE "@arr3\n"; close FILE; I would like to shorten it to for ($i=0;$i<4;$i++) { print FILE "@arr$i\n"; } I know there is an erro

printing html

2002-05-18 Thread Mat Harris
I know all about printing html to a browser from a CGI script, but is it possible to put PHP in that html? If so, how? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Printing perldocs

2002-08-27 Thread James Campbell
Hi all Dumb question but... Does anyone know how to print a perldoc page displayed in the Windows DOS prompt? I can't seem to find the html version of a page I need to print. Hope one of you can help cheers James =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= James Campbell Tel:+44-(0)20-7848-5111 Ema

printing pod

2004-04-23 Thread Green_Bob
I have started using pod to document things like revision history, usage and help info within my programs. I need to keep everything self contained within one script so I can easily distribute the utilities...no read.me's. I would like to be able to print pod sections to the screen, like have

printing reports

2004-07-22 Thread Flatman
hi all ! what would be the best (and easiest) module for printing reports (data based) . I need : - graphical printing (postscript or whatever) to printer since i need formatting (bold..) and images I'd like : - page numbering - easy row counting (I don't like to have to count r

Printing features

2004-11-12 Thread Stephen Liu
Hi folks, Please advise how to add 'bold', 'italic', 'colour', etc. such features to the printout. Can HTML syntax work on perl? I tried seeming not applicable. TIA B.R. Stephen Liu -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Printing

2001-05-14 Thread Paul
--- justin todd <[EMAIL PROTECTED]> wrote: > I am looking for a way to print just a certain in a browser. > Is this possible? Seems likely, but I think we'll need a little more info. =o) __ Do You Yahoo!? Yahoo! Auctions - buy the things you want

Printing Headers

2002-02-26 Thread slhgkh5
I am using format to print to multiple files using a while loop and the body writes out to each file fine, however the header will not write to the top of each file. The first file is fine then it will skip a few and write to another, but not at the top, somewhere in the middle and so on unt

Printing directory sizes

2009-03-03 Thread Lauri Nikkinen
Hi, I'm trying to print directory sizes using script from http://coding.derkeiler.com/Archive/Perl/perl.beginners/2005-08/msg00693.html and when I try it from the cmd.exe C:\Perl>perl Print_directory_sizes.pl "C:/Temp" but I get an error message saying use of uninitialized value etc. Whe

Re: tabular printing

2009-10-05 Thread Алексеев Александр
$ perl printf "%15s %15s\n", "hello", "world"; ^D hello world -- Alexandr A Alexeev http://web20.su/ Andreas Moroder пишет: Hello, I want pro print to screen two strings. The problem ist that the length of the strings are variable, so I get a unreadable output. Even using

Re: tabular printing

2009-10-05 Thread Raymond Wan
Hi Andreas, Andreas Moroder wrote: I want pro print to screen two strings. The problem ist that the length of the strings are variable, so I get a unreadable output. Even using \t does not help because the lenght can vary from 5 to 15 characters. Is there a simple way to expand the first col

Re: tabular printing

2009-10-05 Thread Andreas Moroder
Алексеев Александр schrieb: $ perl printf "%15s %15s\n", "hello", "world"; ^D hello world -- Alexandr A Alexeev Hello Alexander, thanks you for the hint. "%s-15" with the - is what I searched for. Thanks Andreas -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org

Re: tabular printing

2009-10-05 Thread Shlomi Fish
On Monday 05 Oct 2009 11:27:23 Raymond Wan wrote: > Hi Andreas, > > Andreas Moroder wrote: > > I want pro print to screen two strings. The problem ist that the length > > of the strings are variable, so I get a unreadable output. Even using \t > > does not help because the lenght can vary from 5 t

Precision laser printing

2010-04-20 Thread keithvb
Hi, I need to create a grid, 24 cols, 16 rows on 4.5 cm centers on an HP laser printer. Some of the cells will be filled, some empty. Is there a way to do this in Perl? thanks, Keith ~~~ Swim, bike, run, moo... keit...@email.com Keith vonBorstel ~~~

Re: printing hashes

2012-03-25 Thread Dr.Ruud
On 2012-03-25 15:11, Chris Stinemetz wrote: What is the best approach for only printing the hashes that have the value 'ND' or hashes that have different values such as '149' does below. Code it, in Perl. -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@per

Re: printing hashes

2012-03-25 Thread Rob Dixon
On 25/03/2012 14:11, Chris Stinemetz wrote: Below is snippet from Data::Dumper dump from a hash I have. What is the best approach for only printing the hashes that have the value 'ND' or hashes that have different values such as '149' does bel

Re: printing hashes

2012-03-25 Thread Chris Stinemetz
ave. >> >> What is the best approach for only printing the hashes that have the >> value 'ND' or hashes that have different values such as '149' does >> below. >> >> '149' => { >>

Re: printing hashes

2012-03-25 Thread Steve Bertrand
On 2012-03-25 12:02, Chris Stinemetz wrote: How would I return the values along with the keys that meet the criteria from the sub routine? On Mar 25, 2012 10:04 AM, "Rob Dixon" wrote: Keeping with the use of $_, replace the following 'print map' statement to the following: print map "$_

Re: printing hashes

2012-03-25 Thread Chris Stinemetz
> > Keeping with the use of $_, replace the following 'print map' statement to > the following: > > >>> print map "$_\n", @wanted; > > > foreach ( @wanted ){ >    print "$_:\n"; >    foreach ( values %{ $href->{ $_ } } ){ >       print "\t$_\n"; >    } > } > > ** OUTPUT ** > > 149: >        2 >    

Re: printing hashes

2012-03-25 Thread Chris Stinemetz
> code snippet: > my $href = %data; > I changed my $href = %data; to my $href = \%data; and it works now. Thanks all, Chris -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: printing hashes

2012-03-25 Thread Chris Stinemetz
On Mar 25, 2012 11:15 AM, "Steve Bertrand" wrote: > > On 2012-03-25 12:02, Chris Stinemetz wrote: >> >> How would I return the values along with the keys that meet the criteria >> from the sub routine? > > >> On Mar 25, 2012 10:04 AM, "Rob Dixon" wrote: > > > Keeping with the use of $_, replace t

Re: printing hashes

2012-03-25 Thread Steve Bertrand
On 2012-03-25 22:13, Chris Stinemetz wrote: Any advice on how to include a numerical sort on the second key? I've been trying to resolve this for a while and have had no luck. Use a block sort to sort numerically: perl -E '%h=qw(3 a 2 b 1 c 4 d); say sort { $a<=>$b } keys %h;' Show us what y

Re: printing hashes

2012-03-25 Thread Chris Stinemetz
> > Use a block sort to sort numerically: > > perl -E '%h=qw(3 a 2 b 1 c 4 d); say sort { $a<=>$b } keys %h;' > > Show us what you have so far if you need help with a specific code segment. > references are still a bit foreighn to me. Below is the error I am getting along with the snippit of code.

Re: printing hashes

2012-03-25 Thread Steve Bertrand
On 2012-03-25 22:39, Chris Stinemetz wrote: Use a block sort to sort numerically: perl -E '%h=qw(3 a 2 b 1 c 4 d); say sort { $a<=>$b } keys %h;' Show us what you have so far if you need help with a specific code segment. references are still a bit foreighn to me. Below is the error I am ge

Re: printing hashes

2012-03-25 Thread Chris Stinemetz
> > replace all of this: > > >>   foreach my $hr ( sort keys %{ $href->{$cell}} ) { >>     # print "\t$hr"; >>     foreach my $count ( sort keys %{ $href->{$cell}->{$hr}} ) { #<-- line >> 48 >>     print "\t$count"; >>     } >>   } > > > ...with this: > > >    foreach my $hr ( sort keys %{ $href->{

Re: printing hashes

2012-03-25 Thread Steve Bertrand
On 2012-03-25 23:15, Chris Stinemetz wrote: ok. You didn't do anything wrong per-se, all you did was try to go one level too deep into your data structure. $cell (eg 149) was the name of the key for the top-level %hash container. All hash keys can only have one value associated with it. In t

Re: printing hashes

2012-03-25 Thread Chris Stinemetz
> If there is anything I didn't explain well, just say so. > > Good job on your attempts. > > Steve > Thank you very much! I am very grateful for your help and explanations. Take care, Chris -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h.

printing anonymous array

2012-07-07 Thread Chris Stinemetz
Hello list, I have constructed an anonymous array with all the data I need. I am having some difficulty in accessing and printing out the data the way I want. For the sake of not cluttering this thread too much I have uploaded the anonymous array Data::Dumper output at github:gist https

Re: Printing features

2004-11-18 Thread Stephen Liu
Hi Chasecreek, Tks for your advice. > Have you also researched: > > Term::Screen > Term::Screen::Wizard > Term::ScreenColor FC2 === $ perldoc Term::Screen No documentation found for "Term::Screen". $ perldoc Term::Screen::Wizard No documentation found for "Term::Screen::Wizard". $ perldoc Term

Re: Printing features

2004-11-18 Thread Chasecreek Systemhouse
On Fri, 19 Nov 2004 12:51:20 +0800 (CST), Stephen Liu <[EMAIL PROTECTED]> wrote: > > Term::Screen > > Term::Screen::Wizard > > Term::ScreenColor > Please advise how to get them installed on my OS If you are on Unix and *IF* CPAN is correctly configured on your system, this this will work: perl M

Re: Printing features

2004-11-18 Thread Michael David
Original Message - From: "Chasecreek Systemhouse" <[EMAIL PROTECTED]> To: "beginners perl" <[EMAIL PROTECTED]> Sent: Friday, November 19, 2004 4:40 PM Subject: Re: Printing features On Fri, 19 Nov 2004 12:51:20 +0800 (CST), Stephen Liu <[EMAIL PROTECTED]>

Re: Printing features

2004-11-18 Thread Stephen Liu
n your > > system, this this will work: > > > > perl MCPAN -e 'install Term::Screen"' > > perl MCPAN -e 'install Term::Screen::Wizard"' > > perl MCPAN -e 'install Term::ScreenColor"' > > OR TRY if the above doesnt work

Re: Printing features

2004-11-19 Thread Chasecreek Systemhouse
On Fri, 19 Nov 2004 14:10:01 +0800 (CST), Stephen Liu <[EMAIL PROTECTED]> wrote: > hanging here > $ perl -MCPAN -e "install Term::Screen"; > CPAN: Storable loaded ok > mkdir /root/.cpan: æéä¸å¤ at > /usr/lib/perl5/5.8.3/CPAN.pm line 2342 Ummm, that hyphen is -MCPAN is required. Sorry about not

Re: Printing features

2004-11-19 Thread Stephen Liu
Hi Chasecreek, Tks for your advice. - snip - > Try this > > perl -MCPAN -e shell > > Then, at the CPAN prompt ( cpan> ) > > type: > > o conf init > > Answer all the qeustions; > > After you are done, again at t.CPAN prompt type > > install Bundle::CPAN Ran above commands. I don't known

Re: Printing features

2004-11-19 Thread Chasecreek Systemhouse
On Sat, 20 Nov 2004 00:15:52 +0800 (CST), Stephen Liu <[EMAIL PROTECTED]> wrote: > Hi Chasecreek, Call me Bill :) > I see you already have a directory > /root/.cpan > Shall we use it as the general CPAN build and cache > directory? > > CPAN build and cache directory? [/root/.cpan] yes > T

Re: Printing features

2004-11-19 Thread Chasecreek Systemhouse
You might also want to explore: perl -MCPAN -h -- WC -Sx- Jones http://insecurity.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Printing features

2004-11-19 Thread Stephen Liu
Hi Chasecreek, <[EMAIL PROTECTED]> wrote: > You might also want to explore: > > perl -MCPAN -h Yes, the perl switches. Tks B.R. Stephen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Printing features

2004-11-19 Thread Stephen Liu
Hi Bill, > Here [/root/.cpan] -- you should have just hit > enter. > > Try deleting the following directories: > /home/satimis/yes 'yes' directory not found. > /root/.cpan/yes the directory 'yes' is not empty. # ls -al /root/.cpan/yes/ total 5060 drwxr-xr-x 5 root root4096 Nov 20 00:52

Re: Printing features

2004-11-19 Thread Chasecreek Systemhouse
On Sat, 20 Nov 2004 01:10:32 +0800 (CST), Stephen Liu <[EMAIL PROTECTED]> wrote: > > /root/.cpan/yes > > the directory 'yes' is not empty. > > # ls -al /root/.cpan/yes/ > total 5060 > drwxr-xr-x 5 root root4096 Nov 20 00:52 . As root -- rm -fR /root/.cpan/yes > > As root - > > cd > > p

Re: Printing features

2004-11-19 Thread Stephen Liu
Hi Bill, Re-install Bundle::CPAN as advised. I answered most questions with . Installation went on smoothly without warning and finally cpan> prompted. But for unknown reason the PC continued to run and I was not allowed to type "quit" to exit. Neither I was allowed to switch to runlevel 2 or

matching pattern & printing

2005-08-17 Thread Vineet Pande
Hi: In the following perl script, I would like to print all the lines in a file (mdout_short.txt) to temp.txt which have "NSTEP" as a word: use strict; use warnings; my $mdout_file = "mdout_short.txt"; my $mdout_xtemp_file = "temp.txt"; open

Non-printing Characters

2006-02-23 Thread Ryan Frantz
I've got a few reports that are generated by a third-party app that we use and the raw report files include incomprehensible strings at the beginning of each page like so: &k2S&l6D Sometimes there are control characters (shown below as normal text i.e. ^D~Q) throughout the file: 1úù^E~I/~X/

Printing An Array

2006-02-26 Thread overkill
Currently I have my script print in a long list .csv file. I need to print my long list into rows of 20 elements. How can I go about doing this? while ($x = ) { chop $x; @arr = split /\s+/,$x; $temp = @arr; print "$arr[$temp -1],\n"; } __DATA__ hostname01 Unknown DL360 G3 M0PCLGP82F R

references and printing

2002-11-14 Thread Julien Motch
Hi , There is one thing I could not explain about printing references . Take this little program : #!/usr/bin/perl use Mail::POP3Client; $pop = new Mail::POP3Client(HOST => "pop.skynet.be"); print $pop->Host(); #OK print pop.skynet.be print "\n"; #The next line

Printing Japanese characters

2002-11-26 Thread vinai AR
Title: Message Hi all,  I am using Perl 5.6.1 and Windows 2000 US English OS. I am developing some perl scripts that have to process Japanese characters and print out Japanese characters. We use to save the files in Unicode when it has some Japanese characters. But when we compile it or exe

RE: printing hash

2002-12-05 Thread Beau E. Cox
erl way to do what you want, hence the CPAN modules. Aloha => Beau. -Original Message- From: Duarte Cordeiro [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 4:16 AM To: [EMAIL PROTECTED] Subject: printing hash Hi, I have some data in a hash table, and I would like to pr

Re: Weird printing . . .

2003-10-22 Thread Steve Grazzini
On Wed, Oct 22, 2003 at 12:59:33PM -0500, Jason wrote: > I have a file formatted like this: [ snip ] > #error12 > # Couldn't set the transfer mode to binary. > #error12 > > I want to write code that searches for an error number, and then > prints everything in between the two error number lab

Re: Weird printing . . .

2003-10-22 Thread Steve Grazzini
On Wed, Oct 22, 2003 at 02:26:50PM -0400, Steve Grazzini wrote: > #!/usr/bin/perl > # > # [ untested ] > # And it shows... :/ > die "Usage: $0 ERROR\n" unless @ARGV; > > my $num = shift; > my $rx = qr/^#error$num$/; > > while (<>) { > my $range = /$rx/ .. /$rx/; You'd a

Printing epoch time

2003-03-24 Thread Francesco del Vecchio
how can I print the today date (DD MM YY HH MM SS) in epoch format? Frank __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

RE: HASH PRINTING

2003-04-03 Thread David Olbersen
David Olbersen iGuard Engineer 11415 West Bernardo Court San Diego, CA 92127 1-858-676-2277 x2152 > -Original Message- > From: Eric Walker [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2003 11:37 AM > To: [EMAIL PROTECTED] > Subject: HASH PRINTING > > >

Re: HASH PRINTING

2003-04-03 Thread Eric Walker
Sent: Thursday, April 03, 2003 11:37 AM > > To: [EMAIL PROTECTED] > > Subject: HASH PRINTING > > > > > > I have a HASH with a mixture of single, double and triple layers. > > exampl hash of hash of array's etc > > I try to dump and see values

Re: HASH PRINTING

2003-04-03 Thread Pete Emerson
Data::Dumper works for me. You don't need to provide a list of the hash keys. #!/usr/bin/perl -w use strict; use Data::Dumper; my %hash; $hash{one}=1; $hash{two}{one}=2.1; $hash{three}{one}{one}=3.11; print Dumper(%hash); ### $VAR1 = 'one'; $VAR2 = 1; $VAR3 = 'three'; $V

Re: HASH PRINTING

2003-04-03 Thread Jenda Krynicky
From: Eric Walker <[EMAIL PROTECTED]> > David Olbersen wrote: > > > From: Eric Walker [mailto:[EMAIL PROTECTED] > > > > > > I have a HASH with a mixture of single, double and triple layers. > > > exampl hash of hash of array's etc I try to dump and see > > > values of the entire db but I get po

Re: HASH PRINTING

2003-04-03 Thread Eric Walker
Jenda Krynicky wrote: > From: Eric Walker <[EMAIL PROTECTED]> > > David Olbersen wrote: > > > > From: Eric Walker [mailto:[EMAIL PROTECTED] > > > > > > > > I have a HASH with a mixture of single, double and triple layers. > > > > exampl hash of hash of array's etc I try to dump and see > > > >

Re: HASH PRINTING

2003-04-03 Thread R. Joseph Newton
Eric Walker wrote: > I have a HASH with a mixture of single, double and triple layers. > exampl hash of hash of array's etc > I try to dump and see values of the entire db but I get pointers and > memory addresses. Below is my code Please help. > > foreach my $item (keys %hData){ > print ("$

Re: HASH PRINTING

2003-04-04 Thread [EMAIL PROTECTED]
EMAIL PROTECTED] Date: Thu, 03 Apr 2003 18:04:43 -0800 To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: HASH PRINTING Eric Walker wrote: > I have a HASH with a mixture of single, double and triple layers. > exampl hash of hash of array's etc > I try to dump and see values of

Re: HASH PRINTING

2003-04-04 Thread Eric Walker
print $HASH{$KEY} > > HTH, > Yargo! > > Original Message: > - > From: R. Joseph Newton [EMAIL PROTECTED] > Date: Thu, 03 Apr 2003 18:04:43 -0800 > To: [EMAIL PROTECTED], [EMAIL PROTECTED] > Subject: Re: HASH PRINTING > > Eric Walker wrote: > &

Re: HASH PRINTING

2003-04-04 Thread Wiggins d'Anconia
Eric Walker wrote: Sorry for the ignorance but I think I am able to pull the first layer of the hash but the values that are also hashes or arrays I get memory pointers out . For example: TEMP: 2.0 TEMP5: ARRAY(0xdb660) TEMP6: HASH(0xa2058) Any suggestions on how to access the array and or hash

Re: HASH PRINTING

2003-04-04 Thread R. Joseph Newton
Eric Walker wrote: > Sorry for the ignorance but I think I am able to pull the first layer of > the hash but the values that are also hashes or arrays I get memory > pointers out . Not exactly. Those are references. The difference in some ways is suble, but the upshot is that you shold never t

printing a hash

2003-06-11 Thread Stuart White
I have a hash called fouls. Within that hash, there are other hashes called offensive, personal, and shooting. The keys to those hashes are names, like Smith, Rodriguez, and Chan. and the values to those names are numbers. I think if I wanted to access the number of offensive fouls Chan committe

printing html symbols

2003-07-23 Thread mgoland
Hi all, I need to print out a whole bunch of HTML in my cgi script. How can I print things out with out escaping all the necessary symbols ?? Mark G -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Printing an Array

2003-07-30 Thread Pablo Fischer
homp($i); ($correo, $clave, $nombre, $registro, $id, $sexo, $password) = split(/\|/, $i); print $correo; sleep 1; } $count++; } However, it DOESNT print the array, it just waits.. (cause its no printing nothing). However I found that removing the sleep it prints, or afte

Re: Printing Arrays

2003-09-22 Thread Rob Dixon
Desmond Lim wrote: > > I have 3 arrays @arr1, @arr2 and @arr3. > > I need to print them into the same file and I'm doing this. > > open FILE, ; > print FILE "@arr1\n"; > print FILE "@arr2\n"; > print FILE "@arr3\n"; > close FILE; > > I would like to shorten it to > > for ($i=0;$i<4;$i++) { > prin

RE: Printing Arrays

2003-09-22 Thread Charles K. Clarkson
Desmond Lim <[EMAIL PROTECTED]> wrote: : : I have 3 arrays @arr1, @arr2 and @arr3. : : I need to print them into the same file and I'm doing this. : : open FILE, ; : print FILE "@arr1\n"; : print FILE "@arr2\n"; : print FILE "@arr3\n"; : close FILE; : : I would like to shorten it to : : for ($

Re: Printing Arrays

2003-09-22 Thread Jenda Krynicky
From: "Desmond Lim" <[EMAIL PROTECTED]> > I have 3 arrays @arr1, @arr2 and @arr3. Do not do that! http://www.oreillynet.com/pub/a/network/2001/05/18/perl_redflags.html Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed to

Re: Printing Arrays

2003-09-22 Thread Rob Dixon
Jenda Krynicky wrote: > > Desmond Lim wrote: > > > I have 3 arrays @arr1, @arr2 and @arr3. > > Do not do that! Yeah. I guess that summarises it :) Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

strings printing bug

2008-04-25 Thread evan9021
The following script is to read 4 consecutive lines at a time from a file, concatenate the first 3 lines (with a ", "), and print the result to STDOUT. If the 3 lines aren't concatenated they print correctly, however if they are, the result is gibberish. Any suggestions. thx., EC. -

problem with printing

2008-06-19 Thread dakin999
my array definition as their are 4 elements in array, it is printing 4 times each element and then moving to next element till it reaches eof(). while () #reading a line from file # Read the line into a set of variables ($1,$2,$3,$4)=split(/,/,$_); # Buid an array with these

Printing special characters

2008-07-16 Thread ChrisC
I need to print the COPYRIGHT symbol. How to go about it? Tried playing with the following: my $text; $text = chr(hex(0xa9)); print "CR *$text*\n"; But the script just dies. Thanks, Jerry -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http:/

printing array elements

2008-10-09 Thread Charlie Farinella
I have a string of text that I want to split on the tabs: while () { my @array = split(/\t/, $_); ...manipulate them a little, and print them back out like so: print "$array[0],$array[1],$array[2]"; etc. } I normally just print them as above, but I'm thinking there must be a better way

printing line numbers

2008-11-04 Thread Gowri Chandra Sekhar Barla, TLS, Chennai
Hi all I don't want print the line numbers For the following 1) Starting with . 2) Labels label: not for 1: Example Ghjgg Hjh .. Abcb: ggghj 1: G Output should be 1 Ghjgg 2 Hjh . 3 hhjkhjkh Abcb: 4 ggghj 5 1: 6 g Thanks and regards Gowri DISCLAIMER: ---

printing from records ?

2002-05-06 Thread Martin A. Hansen
hi im able to generate records of this kind: { 'bleh' => { 'ISHpix' => [], 'gelpix' => [], 'base' => [ '' ], 'norm' => [

RE: printing html

2002-05-18 Thread Beau E. Cox
Harris [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 18, 2002 3:02 AM To: [EMAIL PROTECTED] Subject: printing html I know all about printing html to a browser from a CGI script, but is it possible to put PHP in that html? If so, how? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: printing html

2002-05-20 Thread Gary Stainburn
On Saturday 18 May 2002 2:01 pm, Mat Harris wrote: > I know all about printing html to a browser from a CGI script, but is it > possible to put PHP in that html? If so, how? There is nothing to stop you printing the PHP stuff out from your perl script, but to the best of my knowledge th

printing key codes

2002-06-04 Thread David T-G
Hi, all -- It seems like it should be a very easy thing to whip up a perl one-liner which will read stdin, spit out the key codes it gets until a ctrl-D, and then quit; something like perl -e 'while (<>) { print SomeMagicHere . \n; } would probably do it. But what is the magic part? How do

Printing in windows

2002-08-14 Thread doug
Anyone figure out how to trigger a nice, MFC-like printing dialogue in Windows? And use an associated API to produce printer output? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Printing perldocs

2002-08-27 Thread Felix Geerinckx
on Tue, 27 Aug 2002 12:45:10 GMT, [EMAIL PROTECTED] (James Campbell) wrote: > Dumb question but... Does anyone know how to print a perldoc page > displayed in the Windows DOS prompt? > > I can't seem to find the html version of a page I need to print. > > Hope one of you can help If you are u

Re: Printing perldocs

2002-08-27 Thread shawn_milochik
TED] cc: 08/27/2002bcc: 08:45 AM Subject: Printing perld

Re: Printing perldocs

2002-08-27 Thread Ramprasad A Padmanabhan
James Campbell wrote: > Hi all > > Dumb question but... Does anyone know how to print a perldoc page displayed > in the Windows DOS prompt? > > I can't seem to find the html version of a page I need to print. > > Hope one of you can help > cheers > James > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Re: Printing perldocs

2002-08-27 Thread Jackson, Harry
Title: Re: Printing perldocs > -Original Message- > From: Ramprasad A Padmanabhan [mailto:[EMAIL PROTECTED]] > > James Campbell wrote: > > Hi all > > > > Dumb question but... Does anyone know how to print a > perldoc page displayed > > in t

Re: Printing perldocs

2002-08-27 Thread dizzy74
James Campbell wrote: >Hi all > >Dumb question but... Does anyone know how to print a perldoc page displayed >in the Windows DOS prompt? > > > How about perldoc -f flock > your_file_lock.txt > LPT1 rob -- Civilization is the process of reducing the infinite to the finite. -- To

Re: printing pod

2004-04-23 Thread WC -Sx- Jones
[EMAIL PROTECTED] wrote: I would like to be able to print pod sections to the screen, like have an option to print out my revision history. I'm sure there must be an easy way to handle thisbut how? I use DocSet and related Template Toolkit items... That way the pod is browserable with the WWW

RE: printing pod

2004-04-23 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > I would like to be able to print pod sections to the screen, like > have an option to print out my revision history. I'm sure there must > be an easy way to handle thisbut how? The Pod::Usage module comes close to doing what you want; perhaps you can adapt it to you

Re: printing pod

2004-04-23 Thread WC -Sx- Jones
[EMAIL PROTECTED] wrote: I would like to be able to print pod sections to the screen, like have an option to print out my revision history. I'm sure there must be an easy way to handle thisbut how? Hmm, the system you are on doesn't have perldoc ? perldoc -qa.a | perl -lpe '($_)=m("(.*)")' |

RE: printing pod

2004-04-23 Thread Charles K. Clarkson
WC -Sx- Jones <[EMAIL PROTECTED]> wrote: : : [EMAIL PROTECTED] wrote: : : > I would like to be able to print pod sections to the : screen, like have an : > option to print out my revision history. I'm sure there : must be an easy way : > to handle thisbut how? : : Hmm, the system you are

Printing GET parameters

2004-09-04 Thread Kiarra Parker
Hi! I thought the following script: #!/usr/bin/perl -T use strict; use warnings; use CGI; use CGI::Carp qw(fatalsToBrowser); my $cgi = new CGI; my $parameters = $cgi->Vars(); get_params($parameters); sub get_params() { my %parameters = %{ $_ }; print $cgi->header(); print $cgi->start_html; my $p;

Re: Printing features

2004-11-12 Thread JupiterHost.Net
Stephen Liu wrote: Hi folks, hello, Please advise how to add 'bold', 'italic', 'colour', etc. such features to the printout. Can HTML syntax work on perl? I tried seeming not applicable. If you're outputinng to something that understands html, yes: #!/usr/bin/perl use CGI 'header'; print header

Re: Printing features

2004-11-14 Thread Stephen Liu
Hi folks, After having installed "Color::Output" module, colour can be printed $ cat colour.pl #!/usr/bin/perl -w use strict; use warnings; use Term::ANSIColor qw(:constants); print BOLD BLUE "Remark:\n", RESET; print "OLINENO=Old Line No. NLINENO=New Line No.\n"; print "OWORDNO=Old Word No. NWO

Re: Printing features

2004-11-14 Thread Chasecreek Systemhouse
On Sun, 14 Nov 2004 20:44:36 +0800 (CST), Stephen Liu <[EMAIL PROTECTED]> wrote: > #!/usr/bin/perl -w > use strict; > use warnings; > use Term::ANSIColor qw(:constants); > > print BOLD BLUE "Remark:\n", RESET; > print "OLINENO=Old Line No. NLINENO=New Line No.\n"; > print "OWORDNO=Old Word No. NW

  1   2   3   4   5   6   7   8   9   >