Re: CSS in Perl

2001-06-29 Thread Richard
Hi there Scuse any netiquette errors - I'm new to mailing lists so I'm a bit shaky on the rules. Use an external style sheet to hold your css information then all you need to do is add the following line to your perl code in the head tags in the html output to put this into a perl context pr

Re: PLaying with CGI's

2001-07-09 Thread Richard
Hi Nathan > Roger G. Romeril replied to an email about test sites for cgi scripts. He > mentioned that instead, it would be better to get a stripped down pc and > load Linux, perl, and apache and play with that. Well, I decided to do just > that. While the suggestion wasn't specifically aimed

Re: HTML and PERL Queries

2001-07-11 Thread Richard
Hi there - I'm on both both perl lists so I'll save you repost To call a script from a webpage you just have to link to that script with the anchor tag eg: link here this will call the script to pass variables into the script you can use web forms eg: the cgi script at the other end sho

array serach for partial value

2008-10-14 Thread Richard
hanks a lot... Richard -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

capturing output from c program inside of perl

2008-11-29 Thread Richard
i have a c program that I want to just run from perl and capture output I would have thought my $c_output = `/tmp/c_program`; would get me the output of the program. instead it prints out to the screen. Is there way to redirect STOUT just for that line and put it back to normal? -- To unsubs

Re: capturing output from c program inside of perl

2008-11-29 Thread Richard
Chas. Owens wrote: On Sun, Nov 30, 2008 at 00:52, Richard <[EMAIL PROTECTED]> wrote: i have a c program that I want to just run from perl and capture output I would have thought my $c_output = `/tmp/c_program`; would get me the output of the program. instead it prints out to the

not understanding pipe command

2008-12-03 Thread Richard
while going over below example from the book, I am not understanding why/how below program works. Can someone explain this to me in better way? what is READER exactly reading from??? and what does print while do ? I thought all the print happens during factorial() and fibonacci() use warning

Re: not understanding pipe command

2008-12-04 Thread Richard
Raymond Wan wrote: Hi Richard, Richard wrote: while going over below example from the book, I am not understanding why/how below program works. Can someone explain this to me in better way? Have you tried running it? does it work like what you expect? what is READER exactly reading

Re: not understanding pipe command

2008-12-06 Thread Richard
Raymond Wan wrote: Hi Richard, Richard wrote: while going over below example from the book, I am not understanding why/how below program works. Can someone explain this to me in better way? Have you tried running it? does it work like what you expect? what is READER exactly reading

Re: not understanding pipe command

2008-12-07 Thread Richard
Raymond Wan wrote: Hi Richard, I'm no Perl expert, but it sounds like you are right. Richard wrote: still confused by after running this program. 1)when I do #print while ; program only outputs --> truly done Let's comment out "fibonacci", first. Then, m

counter program by using closure

2008-12-13 Thread Richard
wanted to draw a box that's counting up for certain time. Thought I could use the counter but it just displays the box not the number.. can anyone point it out for me? thank you. use warnings; use strict; sub counter { my $count; my $counting = <| Counting...

Re: counter program by using closure

2008-12-13 Thread Richard
Richard wrote: wanted to draw a box that's counting up for certain time. Thought I could use the counter but it just displays the box not the number.. can anyone point it out for me? thank you. use warnings; use strict; sub counter { my $count; my $counting = <|

Re: counter program by using closure

2008-12-13 Thread Richard
Chas. Owens wrote: On Sat, Dec 13, 2008 at 21:13, Richard wrote: wanted to draw a box that's counting up for certain time. Thought I could use the counter but it just displays the box not the number.. can anyone point it out for me? thank you. use warnings; use strict; sub counter

Re: counter program by using closure

2008-12-14 Thread Richard
John W. Krahn wrote: Richard wrote: wanted to draw a box that's counting up for certain time. Thought I could use the counter but it just displays the box not the number.. can anyone point it out for me? thank you. use warnings; use strict; sub counter { my $count; my $cou

Re: counter program by using closure

2008-12-14 Thread Richard
John W. Krahn wrote: Richard wrote: John W. Krahn wrote: You want something more like this: sub counter { my $count; my $clear = `clear`; my $counting = <<'EOF'; %s |

Re: counter program by using closure

2008-12-15 Thread Richard
John W. Krahn wrote: Richard wrote: John W. Krahn wrote: You want something more like this: sub counter { my $count; my $clear = `clear`; my $counting = <<'EOF'; %s |

Re: counter program by using closure

2008-12-15 Thread Richard
David Schmidt wrote: You might want to look into fork http://perldoc.perl.org/functions/fork.html http://www.tutorialspoint.com/perl/perl_fork.htm thank you.. I was experimenting w/ forks but I definitely need to understand forking better. thanks!! -- To unsubscribe, e-mail: beginners-

using (dot) . with printf does not incur the results I expected

2008-12-24 Thread Richard
what's wrong w/ this ? I used (dot) . to indicate the maximum length of each element in the print but last one does not print out in alinged format.. What am i missing? use warnings; use strict; my $yabal = 'truncated'; my $never = 'sai'; my $noway = 'han1'; my %never = qw(hi how are you toda

Re: using (dot) . with printf does not incur the results I expected

2008-12-24 Thread Richard
Richard wrote: what's wrong w/ this ? I used (dot) . to indicate the maximum length of each element in the print but last one does not print out in alinged format.. What am i missing? use warnings; use strict; my $yabal = 'truncated'; my $never = 'sai'; my $noway = &

IDE RAD for Perl

2007-11-03 Thread Richard
Running (K)ubuntu Linux, what would be the best programmers editor for Perl looking for a IDE or RAD developers environment or a super text editor with highlighting. -Rich -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: IDE RAD for Perl

2007-11-04 Thread Richard
On Saturday 03 November 2007 11:30:33 pm yitzle wrote: > I've been meaning to learn VIM for a while, but I've done almost all > my Perl writing with nano but in nano you don't have syntax highlightning ? Rich -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

perl hash loop: keys() vs values()

2013-06-15 Thread richard
7D --- key: 1 value: 0C8CB35F key: 2 value: 0C9CB37D --- key: 1 value: 0C8CB35F key: 2 value: 0C9CB37D -- regards, Richard -- tmqrich...@gmail.com

Re: perl hash loop: keys() vs values()

2013-06-15 Thread richard
the value "2"? I was so preoccupied with values() and keys(), thinking of them as being mirror-images of one another, that I forgot what a 'value' and a 'key' were. Thanks again regards, Richard -- tmqrich...@gmail.com On Sat, Jun 15, 2013 at 2:19 PM, Octavian Ra

Re: perl hash loop: keys() vs values()

2013-06-15 Thread richard
Thanks. I looked at this site while searching for solutions but I probably skipped the section on sorting because I wasn't sorting the hash. regards, Richard -- tmqrich...@gmail.com On Sun, Jun 16, 2013 at 3:17 AM, Peter Gordon wrote: > On Sat, 15 Jun 2013 12:12:56 -0400, richard wrot

HoH is there a better way?

2004-11-09 Thread Richard Kofler
0 305 index04 1 4442 4386 0 027 index05 1 1318973 0 0 149 __END__ Resulting output is: $ ./process_tabinfo_V01_dos.pl table01/npdata: 1653131 table02/npused: 12513173 Thank you for

Re: HoH is there a better way?

2004-11-10 Thread Richard Kofler
ng out an element from a hash. [ ... AoH approach snipped ... ]> > # To get the 'big picture': > use Data::Dumper; > print Dumper [EMAIL PROTECTED]; Thank you for pointing me to Data::Dumper! A very valuable hint, indeed. dic_k -- Richard Kofler SOLID STATE EDV Diens

Re: HoH is there a better way?

2004-11-10 Thread Richard Kofler
; last if $. > 10; > } > \%tih; > } > > TMTOWTDI :) > > -- > Gunnar Hjalmarsson > Email: http://www.gunnar.cc/cgi-bin/contact.pl Thank you for the refactoring. Seems it is time for me to get rid of my FORTRAN II habits :) dic_k -- Richard Kofler SOLI

Re: HoH is there a better way?

2004-11-10 Thread Richard Kofler
split; ^^^ I love this part! Looks like magic to me :-) Indeed, this is a fascinating functionality of Perl! I found it reading up about hash slices and array slices, see the commented lines labelled xmpl in my original posting dic_k -- Richard Kofler SOLID S

Reconfiguring PERL

2004-11-22 Thread Richard Foley
How do I reinitialize/reconfigure my PERL installation (v5.8)? I fear my initial configuration is flawed as I cannot install modules or upgrade Bundle::CPAN ... keep getting errors related to ncftp, etc. Thank you. __ NOD32 1.928 (20041119) Information __ This message was chec

Re: [toread] Perl on Cygwin

2004-12-10 Thread Richard Scott
Yes, and perhaps not quite is the answer, as you can run into some configuration etc. issues, and of course not quite the same, but can certainly work fine, have been using it for quite a while. On Sat, 2004-12-11 at 05:53, Mandar Rahurkar wrote: > Hello, > Has anyone used perl on windows

Re: How to find the Index of an element in array?

2005-01-27 Thread Richard Chycoski
'stu'=>5, 'sdfd'=>6); and then $myhash{ 'pqr') wiil return 4. - Richard Mallik wrote: I need to find the index of a particular element in array. For eg., @arr = ('abc', 'xyz', 'mno','pqr','stu','sdfd')

Re: How to find the Index of an element in array?

2005-01-27 Thread Richard Chycoski
o solve a given problem, where N is the number of Perl programmers in the room. The really bad thing about Perl is that there's usually N ways to solve a given problem, where N is the number of Perl programmers in the room. (:-) - Richard Rob Napier wrote: In terms of time efficiency, if

remove me from the list

2005-01-28 Thread Richard Wood
Greetings all, How do I go about removing my email address from this list? Thanks, Richard __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 -- To unsubscribe, e-mail: [EMAIL

Passing command line arguements

2001-05-22 Thread Richard Thompson
nty-nos.cgi 89 1 -w >Perl cnty-nos.cgi 89, 1 am I needing the -w before the arguments and are commas used in the line Richard Thompson Application Programmer/Analyst Kansas Dept. of Transportation Bureau of Computer Services Internet/Intranet Support Phone: (785)-296-8647 FAX: 785-296-6222 Email:

Overloading

2001-06-03 Thread Richard Hulse
ng the overloaded function. Even if I allow Perl to magically make the += happen for me it still does the same (wrong) thing. Am I going mad? Richard

Re: Overloading

2001-06-03 Thread Richard Hulse
ng to find where this happens. Any other clues? regards, Richard At 10:47 3/06/2001 -0400, Jeff Pinyan wrote: >Are you doing that via: > > fallback => 1 > >in the argument list to 'use overload'? That's how the implicit >definitions of operators work. It works for me:

Re: Overloading

2001-06-03 Thread Richard Hulse
r methods return when using assignment operators. Duh! Thanks for your help. Richard At 10:47 3/06/2001 -0400, Jeff Pinyan wrote: >Are you doing that via: > > fallback => 1 > >in the argument list to 'use overload'? That's how the implicit >definitions of

Re: perl compiler and editor for windows

2001-06-06 Thread Richard Hulse
My favorite text editor is notetab (www.notetab.com) and you happen to be able to run perl from it. I know it is not free but my favorite integrated tool is OptiPerl. www.xarka.com. Good value for $US59. I use this with ActiveState Perl and an NT Apache build. Regards, Richard At 22:05

Re: directory listing to array

2001-06-07 Thread Richard Hulse
Since someone raised the general question of differences, which is faster? Randal's suggestion: my @result = <*.jpg>; or variations on: @files = grep /jpg/i, readdir DIR; regards, Richard

RE: directory listing to array

2001-06-08 Thread Richard Hulse
Thanks folks, this is ANOTHER module I'm going to start using. I have to say that this is a lot more fun than counting clock cycles, which was the last bench-marking I did a long, long time ago... regards, Richard At 19:53 7/06/2001 -0700, Peter Cornelius wrote: >Looking at t

Please tell your people to stop sending E-mail to me.

2001-06-19 Thread richard kirby
I have unsubscribed to all your supposed E-mail subscriptions. You you PLEASE pass the word to your subscribers to stop sending e-mail to me concerning Perl. Your subscribers are flooding me e-mail 90+ e-mail a day. I original subscribed to your server to get some insight into using Perl. I am ve

2001 YAPC mp3s [was RE: tutorial on my/our/use/package/local]

2001-06-21 Thread Richard Soderberg
The proper address to find these at would be http://www.crystalflame.net/yapc/ - I'd prefer not linking to the files directly as this prevents people from seeing the other talks and the mirrors that may be available. As a side effect of this, the URL in Chas' message is now a 404; the correct URL

Re: Komodo

2001-06-22 Thread Richard Hulse
Slw! Download ActiveState Perl and use OptiPerl www.xarka.com. It is faster, cheaper and has all the debugging stuff built in. regards, Richard At 12:47 22/06/2001 +0200, Aaron Craig wrote: >Has anyone tried the Komodo development environment from >ActiveState? Must yo

How do you code a "tail -f" if you're using Net::Rsh?

2003-01-22 Thread Richard Fernandez
There's a FAQ that deals with coding a "tail -f" if you're logfile is on the same box as the perl script. But what if you want to use rsh to tail a file remotely? Here's what I have: --8<---8<--- #!/u

Replacing a string in a bunch of files

2003-01-31 Thread Richard Fernandez
I just had a situation where I needed to replace one string with another string in 200 files. This is what I came up with, but I know there has to be a better way. Below is my code. "myfiles" contains a list of the files I need to scrub, one per line. ---8<-8<-

upgrading perl

2003-02-13 Thread Richard Fernandez
I have a box that's running perl version 5.005_03 and I'ld like to upgrade to the latest version. What's the best way to accomplish this and maintain access to my currently installed modules? I'm doing this on a SUN box. Also, this particular box is behind a firewall and doesn't have internet con

RE: upgrading perl

2003-02-13 Thread Richard Fernandez
inks to point to the old modules? Or is there more to it than that? Thanks again! -Original Message- From: Richard Fernandez [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 10:26 AM To: [EMAIL PROTECTED] Subject: upgrading perl I have a box that's running perl version

Excel spreadsheet: creating charts

2003-03-12 Thread Richard Fernandez
We have a manual process in place to create Excel worksheets that contain bar charts. I'm trying to automate this process using perl. The problem is that I don't know how to access the underlying formulas, in Excel, that generate the charts. Our current process is as follows: 1) Generate a space s

RE: Excel spreadsheet: creating charts

2003-03-12 Thread Richard Fernandez
- David Olbersen iGuard Engineer 11415 West Bernardo Court San Diego, CA 92127 1-858-676-2277 x2152 > -Original Message----- > From: Richard Fernandez [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 12, 2003 7:55 AM > To: [EMAIL PROTECTED] > Subject: Excel spreadsheet: c

RE: Excel spreadsheet: creating charts

2003-03-12 Thread Richard Fernandez
asMinorGridlines} = 0; $Graph->Axes(xlSeries)->{HasMajorGridlines} = 1; $Graph->Axes(xlSeries)->{HasMinorGridlines} = 0; $Graph->Axes(xlValue)->{HasMajorGridlines} = 1; $Graph->Axes(xlValue)->{HasMinorGridlines} = 0; $Graph->Axes(xlValue)->{WallsAndGridlines2D} = 0; $Graph->

RE: use Pg;

2003-04-01 Thread Mace, Richard
Hi, In Postgres, all non-quoted identifiers are converted to lower-case, unless they are quoted. e.g. SELECT * FROM MY_DATA_0; Error: my_date_0 does not exist try SELECT * FROM "MY_DATA_0"; or probably better, in future, use lowercase names, e.g. SELECT * FROM my_data_0; Rich. -Origin

Wanted: Help with perl 5.6 syntax Arrays, Hashes and references

2003-06-01 Thread Richard Heintze
Some help understanding this program would be greatly appreciated! I'm really struggling with this perl language! Thanks, siegfried my $x= {'d' => 'y', 'f' => 'g'}, $y = ['a', 'b', 'c', 'd']; # This works! Good! foreach my $i (@{$y}){ print "array i = $i\n" } # (1) Why does

count of words (fields) after "split"

2003-06-01 Thread Richard Müller
mmand -- Richard Müller - Am Spring 9 - D-58802 Balve [EMAIL PROTECTED] - www.oeko-sorpe.de -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Wanted: Help with perl 5.6 syntax Arrays, Hashes and references

2003-06-01 Thread Richard Heintze
Thank you very much James and David! Wow! What prompt responses! I have some more questions! I tried "use strict;" and that worked. Are you encouraging me to use "use warn;" too? That does not work. > > # $i receives the proper values > > foreach my $i (keys %{$x}) { > > # (4) Why does not thi

Re: Wanted: Help with perl 5.6 syntax Arrays, Hashes and references

2003-06-01 Thread Richard Heintze
Sorry James, you got a second copy. I meant to reply to the group. James, thank you, thank you! Can you explain this syntax then, that is used with foreach loops? foreach my $i (keys %{$x}) { ... } Why don't we use foreach my $i (keys $$x){... }? > > What is the name for this syntax: "(keys

Re: Wanted: Help with perl 5.6 syntax Arrays, Hashes and references

2003-06-01 Thread Richard Heintze
James, I hope this is my last question. I appreciate your (and everyone else's that has contributed) generousity. I have a web site I inherited where a single page has 3000 lines of perl code. It does not use strict or warnings. The original authors only used global variables and never used any f

Wanted: Help with Function Arguments

2003-06-01 Thread Richard Heintze
Thanks James, I think I understand now! Here is another topic: What is happening to my second argument here? It is not being passed! use CGI qw(:standard); $q = new CGI; sub print_args { my ($a, $b, $c) = @_; print "a = $a b = $b c=$c\n"; } &print_args("abc", $q->param('next'), "xyz"); # Ho

Re: Wanted: Help with Function Arguments

2003-06-01 Thread Richard Heintze
I'll try your suggestion of using scalar a little later... Siegfried --- James Edward Gray II <[EMAIL PROTECTED]> wrote: > On Saturday, May 31, 2003, at 05:01 PM, Richard > Heintze wrote: > > > Thanks James, I think I understand now! > > Glad to h

Wanted: Help with modules/packages

2003-06-12 Thread Richard Heintze
I apologize if I'm posting this twice. I assume that it did not go out to the group because I did not get any responses and the folks at [EMAIL PROTECTED] have been extremely helpful in the past. Can somone help me make my sample program work below? (1) I cannot call function hello from main.pl. W

How to store bit array of arbitrary length

2003-06-15 Thread Richard Heintze
Presently I'm using an integer to implemement an array of booleans. I suspect this won't work beyond 32 array elements. Is there a better way to accommodate longer bit arrays? Could I use a string, for example, to store an array of bits? Can I just use the bit manipulation operators (^= &= |=) on

%x = ( xyx => 'abc' ) is strange!

2003-06-17 Thread Richard Heintze
Why does this program print "yes def" but not "yes xyz"? It does print "xyz:def", so I don't understand why it does not print "yes xyz". { my %x = ( xyx => 'abc', d => 'y', f => 'g' ); $x{"def"} = "fhi"; print qq($_ : ).$x{$_}.qq(\n) foreach (keys %x); foreach (keys %x) { print "yes xyz

Sudden termination for no reason?

2003-06-17 Thread Richard Heintze
My program is terminating for no reason apparent to me! Using the debugger I see that $$curr_true is a 4 element array whose values are , 1, 4, 7. $ev_count is 1. Why would both my debugging session suddenly and my cgi script end when I execute that last statement? Thanks, Siegfried sub F

Why did @{$$a}[$i]; fix my problem?

2003-06-19 Thread Richard Heintze
The following fragment of code retrieves an integer from an array that is passed by reference. It was working fine: my $t = @$curr_true[$ev_count]; I made some changes else where in the program (from which this fragment comes) and suddely both the web server and (thank goodness) the debu

Command line Password

2002-07-25 Thread Richard Lowe
Hi, I'm trying to read in a password from the command prompt, but want to either mask the typed characters with the '*' character, or 'disconnect' the input from the screen so the characters don't appear at all, but the input is still captured. The systems I'm using are Win32, and I'd rather not

perl CPAN modules

2002-08-16 Thread Pfeiffer, Richard
Good Evening, Wondering what list I should send a question to regarding CPAN modules, in particular, the intitial config file. Ignore the rest of this lengthy diatribe if this is not the correct list. :) When I loaded my first module, actually a bundle, I used: perl -MCPAN -e 'install "Bundl

removing all elements in an array

2004-02-04 Thread Markham, Richard
How can I simply remove all elements in an array, given that the array is global and a procedure defines the elements to where the total number of elements in this array could be very well be less. I have tried @array = (); but this seems to affect the arrary in that it wont take any element assi

How to interrogate array cell?

2004-02-10 Thread Richard Heintze
I have an array of hashes. What function should I be using to interrogate each array cell when I want to know if it is occupied? "exists" seemed to do the job nicely. What about "defined"? Now I am curious: how would I implement a switch statement (er, I mean, set of if-elsif statements) for a

Re: Perl Documentation like Javadoc

2004-02-10 Thread Richard Heintze
Speaking of documentaiton, is there any structured approach to documenting the get/post parameters for a perl web page? I have a main menu type of of page I have inherited. The GUI designer is not a programmer seems to have a strong preference buttons instead of links or drop down menus. Each pus

How to write a function that clears an array?

2004-04-10 Thread Richard Heintze
I'm passing a singularly dimensioned array to a function. I need to clear the array in the function so that when I return to the main program, there are no entries in the array variable I passed to the function. Can someone write a small function that does this? Thanks, Sieg __

DBD for SQL Server?

2004-05-11 Thread Richard Crawford
Is there a DBD for SQL Server so that I can connect to our SQL Server 2000 database with DBI? I've hunted all over CPAN but I can't seem to find one. -- Richard S. Crawford Programmer III, UC Davis Extension Distance Learning Group (http://unexdlc.ucdavis.edu) (916)327-7793 / [EMAIL

Re: DBD for SQL Server?

2004-05-12 Thread Richard Crawford
NYIMI Jose (BMB) wrote: -Original Message- From: Alok Bhatt [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 11:49 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: DBD for SQL Server? --- Richard Crawford <[EMAIL PROTECTED]> wrote: Is there a DBD for SQL Server s

Problems with Perl CPAN on Solaris 9

2004-05-10 Thread Richard Crawford
nd the CPAN configuration is pointing to the gcc installation, so I'm not sure what the problem might be. -- Richard S. Crawford Programmer III, UC Davis Extension Distance Learning Group (http://unexdlc.ucdavis.edu) (916)327-7793 / [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECT

string extract from email body

2004-07-22 Thread Richard Foley
Simple question for those who know ... I want to extract 2 or 3 lines of text from an incoming email, process it and insert it into an outgoing email. Anyone got something similar I use linux mail servers. Thanks in advance. R -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Trying to parse XML file

2004-08-23 Thread Richard Jolly
find a match, you'll have to check: if ( $elem = $prod->find_by_tag_name('run-time') ) { $tpm[11] = $elem->as_text; } EasyTree or another package may give you a nicer way of doing this that lots of conditionals in your code. Richard -- To unsubscribe, e-mail: [EMAIL PROTE

SQL/Win32::ODBC/MSAccess from Perl 5.6?

2003-08-01 Thread Richard Heintze
Is this an appropriate place to post questions on Win32::ODBC/MSAccess 2000/Perl 5.6 cgi/Apache HTTPD? If not, can someone directe me to an appropriate FAQ or mailinglist or newsgroup? I've been struggling with specifying zero length strings in SQL. Nothing seems to work. I've tried $Data->Sql

cookies

2003-08-14 Thread Mace, Richard
I want to start using cookies to store user session information and build associated privileges on web pages. I'm starting as a complete novice in this field, has anyone else got off to a flyer using a book or web-site they can recommend? Any hints gratefully received, thanks, Ri

editing mail spool file

2003-10-03 Thread Richard Fernandez
On occasion someone sends out a mail message with MIME attachment that we want to delete from the recipient's spool file. This happens on a Solaris box, so I'm talking about editing /var/mail/, and there are often dozens of recipients. What we've been doing is using "mutt -f" to open each individ

Re: editing mail spool file

2003-10-06 Thread Richard Fernandez
On Fri, Oct 03, 2003 at 09:24:01PM -0400, TN wrote: > Based on your delete criteria, it would be much easier to filter out > unwanted mail messages on an incoming relay mailer in your DMZ. You > could do other things there such as filtering out mail with MIME > attachments beyond a certain size li

Re: editing mail spool file

2003-10-07 Thread Richard Fernandez
On Mon, Oct 06, 2003 at 07:52:31PM -0500, Wiggins d'Anconia wrote: > Richard Fernandez wrote: > > On Fri, Oct 03, 2003 at 09:24:01PM -0400, TN wrote: > > > >>Based on your delete criteria, it would be much easier to filter out > >>unwanted mail messages o

How to store arrays in hashes or objects?

2003-10-28 Thread Richard Heintze
I had emailed this query out previously but since I never saw my own email in the digest, I'm assuming that it never made it to the [EMAIL PROTECTED] list. Please forgive me if it did and I did not see it (my SPAM filter might have eaten it). Question #1 --- I have an array stored in an o

Where is editor that will Indent my perl code?

2003-11-03 Thread Richard Heintze
emacs and a number of other editors have the ability, with a single key stroke to properly indent java code. However, since perl has such unusual syntax for specifying literal character strings (my favorite is qq[]) emacs chokes when it attempts to indent my perl code. Too bad -- I love emacs. Is

RE: Where is editor that will Indent my perl code?

2003-11-03 Thread Richard Heintze
o more > expensive than many of the other alternatives. Have > you tried vim? > > -Original Message- > From: Richard Heintze > [mailto:[EMAIL PROTECTED] > Sent: Monday, November 03, 2003 11:28 AM > To: [EMAIL PROTECTED] > Subject: Where is editor that will Inde

$x .= $y suddenly breaks and does $x=$y instead!

2003-11-04 Thread Richard Heintze
I'm running perl 5.6.1 on Apache HTTPD V2. I noticed some values were not appearing on the web page. After several hours I tracked it down to these line of code. The concantenation is failing suddenly! my $hidden=""; &FormElements(\$hidden...); sub FormElements{ my $hidden = @_; my $t1 = qq

Re: $x .= $y suddenly breaks and does $x=$y instead!

2003-11-04 Thread Richard Heintze
Jenda, Sorry -- I was not quoting my own code precisely and I am using strict and warnings. I am using parenthesis. I attached the exact code for the subroutine below. --- Jenda Krynicky <[EMAIL PROTECTED]> wrote: > From: Richard Heintze <[EMAIL PROTECTED]> > > After se

Surpressing concatenation with null warnings

2003-11-04 Thread Richard Heintze
I have just discovered the the following code causes trouble when I have "use strict" and "use warn"; use strict; use warnings; my $k = $q->param('xyz'); print qq[ \$k = $k ]; The problem is that if there is no GET/POST param called xyz, we are concatenating with a null value and, when using CGI

RE: Surpressing concatenation with null warnings

2003-11-04 Thread Richard Heintze
> I think what you want is this: > > no warnings qw(uninitialized); > Would I put this immediately after "use warnings;"? __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree -- To unsubscribe, e-mail: [EM

script to download via http

2003-11-14 Thread Richard Foley
appreciated. Richard

Re: reading formated report, excel, OLE::32

2003-12-19 Thread Richard Morse
On Friday, December 19, 2003, at 11:24 AM, William Martell wrote: I need to extract the data that is under the column headers. I have attached a sample of the printed report. The real report repeats the same format over and over again until completion. I would like to extract the data and plac

RE: Help me out

2002-02-14 Thread Richard Crawford
IL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- > To unsubscri

RE: Caching Large Data Structures To Disk

2002-02-15 Thread Richard Smith
Hi Jess, Tied variables might work, but I was also browsing CPAN this afternoon, and I noticed that there is a whole SAS module under "Commercial Software". I have no idea what it does, but you might find it interesting to look at. Thanx, Smiddy -- To unsubscribe, e-mail: [EMAIL PROTECTED]

im a beginner using perl

2002-02-19 Thread Wood, Richard
=$?; &logmesg("$telreturn","Urgent telalertd process (on $host) indicates the process is down"); ##2) check other ars process if (telreturn != 1) { } elsif (telreturn == 1) { Thanks, Richard -- To unsubscribe, e-mail: [EMAIL PROTECTED] For add

RE: Sockets in an array

2002-02-25 Thread Richard Smith
> $newsocket[$i] = IO::Socket::INET->new("$address") or die $@; How are you declaring "newsocket"? I would probably decare it as "local" rather than as "my". Worth a try anyway. Unfortunately I can't try it here. Thanks, Smiddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Sockets in an array

2002-02-25 Thread Richard Smith
Hi Jenda, I have had problems using "my" when refering to File Handles, especially when I wish to pass them to subroutines. I have also had problems declaring them with $ or @, and have been forced to use: local *logHandle; Is this because I am declaring the actual filehandle, and not a refer

RE: sort order of hash keys

2002-02-26 Thread Richard Smith
Try the fields module. This sounds like an ideal place to use a pseudo-hash Thanx, Smiddy .. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

FW: How long can $_ be?

2002-03-13 Thread Richard Smith
Hi Folks, This got me wondering. Is the behavior you see caused by limitations for $_, or by limitations of the print function? You might try: print strlen( $_ ), "\n"; Thanks, Smiddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How long can $_ be?

2002-03-14 Thread Richard Smith
My Perl doesn't know what strlen is. Is it part of a module? Oops. Don't get your perl mixed up with your C, Smiddy. I meant length($_) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

regular expressions in rindex function

2002-03-18 Thread Richard Pfeiffer
Good Afternoon, Wondering if anyone could help me with this or enlighten me on another way to go about it. I have a string that has various white space (tabs, spaces, etc) at the end of it. I want to find the last real char [0-9a-zA-Z] and then use chop or chomp to remove the whitespace. I've

RE: nice, perl, fork and exec

2002-03-19 Thread Richard Smith
In *nix, he child process inherits the nice value of the parent process, and, unless the process owner is the super-user, the child process cannot be given a higher priority. This would also apply to calls to system() and backticks, since they all basically use the same mechanism. It also ap

MIME::Lite Query

2002-03-20 Thread Mace, Richard
et a valid date here) $msg = new MIME::Lite From=> $from, To => $to, Date=> $date, etc Does anybody know the rules regarding the date field and what it expects. I cannot find the key info I require on CPAN. Any info greatly rece

newbie question about subroutines

2002-03-26 Thread Richard Wood
I have this script that checks processes on aix box. My question is within the subroutine. If the process is not running the return code is 256. How do prevent it from sending multiple alerts to a pager? What I want it do is send 1 page at a time for multiple events. Piece of my script: $tel

  1   2   3   4   5   6   >