configuring Net::SMTP

2023-07-08 Thread Rick T
stuff to see what would happen. If any of you have suggestions or corrections, I’d be grateful! Rick Triplett FIRST SUBROUTINE: sub email_analysis {# to LibertyLearning for score posting and analysis my $n_max = shift; my @analysis = define_analysis($n_max); my $sub

hosting suggestion?

2023-07-01 Thread Rick T
because I’m a high school teacher rather than a web professional! Thanks in advance! Rick Triplett -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

proper use of TEMPLATE

2019-03-14 Thread Rick T
l work (perhaps all will work), but I want to know what is considered best practice and why. Perhaps there’s even a whole better way to approach this! I will be grateful to chew over any and all comments you experienced people send me. Thanks! Rick Triplett -- To unsubscribe, e-mail: beginners-un

browser hang

2018-10-31 Thread Rick T
statement was reached, but I don’t know if I can make the brewers wait longer; and even if I could, the processing should not take this long. Being a newbie, I have quickly run out of ideas to check. Any suggestions would be appreciated! — Rick Triplett . . . SNIP (first hundred lines not shown

Re: data structure for Template Toolkit

2018-10-31 Thread Rick T
gt;> curves I take on! >> >> Still, if anyone can point me to a “beginners guide” to using CPAN, I’ll >> take a look at it. >> >> Rick Triplett > -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: data structure for Template Toolkit

2018-10-30 Thread Rick T
a high school teacher who dabbles in perl. And at age 74 I have to be choosy about which learning curves I take on! Still, if anyone can point me to a “beginners guide” to using CPAN, I’ll take a look at it. Rick Triplett > On Oct 29, 2018, at 3:52 PM, Uri Guttman <ma

data structure for Template Toolkit

2018-10-28 Thread Rick T
As a novice in perl I realize that it’s a bit presumptuous for me to attempt references and complex data structures. But I had a need and gave it a shot — a failing shot. I’ve been fiddling with my failure, almost mindlessly, all weekend; now I need some help. Below is the template segment I am

Re: slipping through my sieve

2018-09-10 Thread Rick T
globals to pass data. I’ve come across this suggestion in the past but failed to appreciate it. Now I see that I have a lot of rewriting to do. An uphill job, but it needs to happen! Rick > On Sep 9, 2018, at 1:30 PM, Uri Guttman wrote: > > On 09/09/2018 02:11 PM, Rick T wrote: >&g

slipping through my sieve

2018-09-09 Thread Rick T
I don’t know whether my difficulty is with my perl or with my logic; but either way I need a fresh mind on this. If I test the subroutine by feeding it a file name that does not exist in any format, I expect it to die — but it does not. Any good ideas will be greatly appreciated! Rick sub

reading form values from POST

2018-09-02 Thread Rick T
on how I can learn more about CGI and how to deal with it. This book has been extremely valuable to me, but even I can see that some of its guidance is a bit creaky! — Rick sub get_form_data { my $query = q{}; # Empty string my @name_value_pairs; if ( read( STDIN, $query, $ENV

slurp error

2018-07-27 Thread Rick T
4. I’ve googled this error and think (ha!) I understand it, but though I’ve tried many changes, I cannot make the error go away. I need the advice of folks who are way ahead of me! Rick Triplett use warnings; use strict; use DB_File; # module for Berkeley DBM w/ DB_HASH file type

interpolation without double quotes

2018-07-04 Thread Rick T
mit double quotes. Thanks! Rick Triplett

difficulty with matching

2018-06-01 Thread Rick T
e trailing digits }xms; # Perl Best Practices $student_surname = $1; my $hyphen = $2; $student_number = $3; die "$student_surname, $hyphen, $student_number”; Rick Triplett

local and auto flush

2018-05-15 Thread Rick T
; # autoflush output print "Content-Type: text/html\n\n"; my $tt = Template->new( ect. Many thanks! Rick Triplett -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: obstinate syntax errors

2018-01-19 Thread Rick T
Uri, Thank you SO much for your helpful comments! You didn’t just solve THIS problem, you’ve helped me in my future programming! Rick > On Jan 19, 2018, at 11:56 AM, Uri Guttman wrote: > > On 01/19/2018 12:44 PM, Rick T wrote: >> The subroutine below produces the followin

obstinate syntax errors

2018-01-19 Thread Rick T
The subroutine below produces the following syntax errors: syntax error at /big/dom/xexploringmyself/cgi-bin/register.cgi line 71, near ""Can't change directory to $progress_hash{student_id}: $!";" syntax error at /big/dom/xexploringmyself/cgi-bin/register.cgi line 73, near ")" I've tried adding

regex problem?

2015-11-25 Thread Rick T
The following code apparently is not doing what I wanted. My intention was to confirm that the general format of $student_id was this: several uppercase letters followed by a hyphen followed by several digits. If not, it would trigger the die. Unfortunately it seems to always trigger the die. F

Re: inserting a variable server name into code

2013-12-26 Thread Rick T
Many thanks to Andy Bach, Janek Schleicher, Diab Jerius, and David Precious for you helpful comments on my post. My problem is solved and, more importantly, I learned important stuff from all of you! Rick Triplett -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands

inserting a variable server name into code

2013-12-19 Thread Rick T
name="FormName"> Again I’d like to declare the server at the top of the code. I realize this is not strictly speaking a Perl question, but maybe there is a Perl solution?! Many thanks for whatever suggestions you have! Rick Triplett

Re: Quizzing students with Perl

2013-10-08 Thread Rick T
first: I'm almost 70). I may not understand much about programming, but at least it's fun! Rick -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Quizzing students with Perl

2013-10-03 Thread Rick T
grateful for whatever you offer! Rick #!/usr/bin/perl # student_poser3 use strict; #use warnings; commented out because one of my comparisons issue a warning use CGI; $CGI::DISABLE_UPLOADS = 1; $CGI::POST_MAX = 102_400; use DB_File; # module for Berkeley DBM w/ DB_HASH file type use Fcntl qw

Re: Sorting mixed alphanumerics

2009-10-18 Thread Rick Triplett
Many thanks to Scott, Shawn, Paul, Jenda, and Uri. I've learned something from each of you, and appreciate your taking the time to help! Rick -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Sorting mixed alphanumerics

2009-10-14 Thread Rick Triplett
le way to do this. But several days of experimenting have been unsuccessful. Advice appreciated! Rick Triplett -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Business::UPS upgrade

2009-08-26 Thread Rick Bragg
Also, Is anybody using this module anymore? Is there a replacement? Thanks! Rick -- This message has been scanned for viruses and dangerous content by Green Mountain Network, and is believed to be clean. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e

Business::UPS should be fixed or removed.

2009-08-22 Thread Rick Bragg
Hi, As far as I can tell, this perl module returns bogus numbers that have nothing to do with the real prices from UPS and should be done away with or fixed. If you use this, beware, check out your prices, will all be low. Rick -- This message has been scanned for viruses and dangerous

localtime

2009-06-09 Thread Rick
below is working code but is there way to shorten this code in more perlish way? my($DAY, $MONTH , $YEAR ) = (localtime)[3,4,5]; my $day = sprintf("%02d",$DAY); my $month = sprintf("%02d", ($MONTH + '1')); my $year = sprintf("%04d", ($YEAR + '1900')); my $current_dir = join('', $year, $mont

Re: sort multiple hash reference by value

2009-05-12 Thread Rick
Chas. Owens wrote: On Tue, May 12, 2009 at 00:08, Rick wrote: snip It's very weird. I did verify that it is numeric values that I am comparing... also i am using warnings and strict as well and i get no warnings. can't figure out what's wrong. snip In cases like thi

Re: sort multiple hash reference by value

2009-05-11 Thread Rick
John W. Krahn wrote: Rick wrote: John W. Krahn wrote: Rick wrote: should this not work? Based upon the code presented, it looks like the code it correct. I am finding out that Length is *NOT* being sorted correctly numerically... Of course we don't know the data stored in %in_arra

Re: sort multiple hash reference by value

2009-05-10 Thread Rick
John W. Krahn wrote: Rick wrote: should this not work? Based upon the code presented, it looks like the code it correct. I am finding out that Length is *NOT* being sorted correctly numerically... Of course we don't know the data stored in %in_array and %in_array_c so it is hard t

sort multiple hash reference by value

2009-05-10 Thread Rick
should this not work? I am finding out that Length is *NOT* being sorted correctly numerically... for my $d ( sort { $in_array{$b} <=> $in_array{$a} } keys %in_array ){ printf "SERVER:%-20s %-20s\n",$d,$in_array{$d}; for my $key30 ( keys %{ $in_array_c{$d} } ) { for my

reading files c vs perl

2009-04-14 Thread Rick
is it true that perl will be just as fast as c for reading files ? for example will below be as fast as if it were written in c? I said this because on random posts, I see that perl is optimized to work w/ text files and it should be as fast as perl open FILE, $file or die "bad filename: $!"

Re: output record separator in one liner

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

output record separator in one liner

2009-04-13 Thread Rick
perl -lane' print "$F[0] ", "$F[4]" , " $F[5]";' Is there anyway to incoporate $\ <- output record separtor to do this instead of printing out w/ manual spaces beteween the variables? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@pe

quick regex question

2009-03-25 Thread Rick Bragg
this quick line or 2? Thanks! Rick Bragg -- This message has been scanned for viruses and dangerous content by Green Mountain Network, and is believed to be clean. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: inserting what was matched in regex without going through if statement

2009-03-07 Thread Rick
Chas. Owens wrote: On Sat, Mar 7, 2009 at 11:53, Rick wrote: __test-code__ use warnings; use strict; my $test_s = 'hi [how are you]'; my $data; if ( $test_s =~ m/\[.+\]/ ) { $data = $1; } __END__ is there easier way to do this I was hoping something like this would w

inserting what was matched in regex without going through if statement

2009-03-07 Thread Rick
__test-code__ use warnings; use strict; my $test_s = 'hi [how are you]'; my $data; if ( $test_s =~ m/\[.+\]/ ) { $data = $1; } __END__ is there easier way to do this I was hoping something like this would work $data = ($test_s =~ m/\[.+\]/); but does not work.. I tried @data too but stil

Re: perl script on remote server

2009-03-02 Thread Rick
Owen wrote: I have a perl script on remote server. I want to launch a expect script(none perl) from local server with arguments and launch perl script on remote server.(arguments will be feed into perl script) I don't know how long perl script will run but I want to scp(using expe

perl script on remote server

2009-03-02 Thread Rick
I have a perl script on remote server. I want to launch a expect script(none perl) from local server with arguments and launch perl script on remote server.(arguments will be feed into perl script) I don't know how long perl script will run but I want to scp(using expect script from local) the

Re: picking largest key by value..

2009-02-27 Thread Rick
Jim Gibson wrote: On 2/27/09 Fri Feb 27, 2009 8:33 AM, "Rick" scribbled: Jim Gibson wrote: On 2/26/09 Thu Feb 26, 2009 3:53 PM, "John W. Krahn" scribbled: I get "Use of uninitialized value in numeric gt (>) at ..." for that, since @max is und

Re: picking largest key by value..

2009-02-27 Thread Rick
Jim Gibson wrote: NO it is not. The way to diagnosis this type of problem is to look at the contents of your variables, either by stepping through your program with a debugger or by adding print statements to your program. If you do that, you will find that the @next array is not assigned the key

Re: picking largest key by value..

2009-02-27 Thread Rick
Jim Gibson wrote: On 2/26/09 Thu Feb 26, 2009 3:53 PM, "John W. Krahn" scribbled: I get "Use of uninitialized value in numeric gt (>) at ..." for that, since @max is undefined the first time through the loop. Here is a version using each that doesn't produce that error. It uses the fact th

Re: picking largest key by value..

2009-02-26 Thread Rick
Rick wrote: trying out getting lasrgest key(by value) but below is not working... help please. my %files=%{{"one" =>"1", "thiry" =>"30", "four" =>"4", "never" =>"997", "forever" =>

picking largest key by value..

2009-02-26 Thread Rick
trying out getting lasrgest key(by value) but below is not working... help please. my %files=%{{"one" =>"1", "thiry" =>"30", "four" =>"4", "never" =>"997", "forever" =>"11", "five" =>"5"}}; my $max; print join(" ",keys %files),"\n"; =pod grep($max=($files{$_} > $max )? $_ : $max,keys %fil

Re: [OT] Mailing List Replies?

2008-06-16 Thread Rick Bragg
On Tue, 2008-06-17 at 00:29 +0200, Dr.Ruud wrote: > Rick Bragg schreef: > > Dr.Ruud: > >> Rick Bragg: > > >>> Is there a reason why the reply-to on this mailing list is set to go > >>> back to the poster and not back to the list? I think its be

Re: Problem installing Tie::Watch

2008-06-16 Thread Rick Bragg
On Mon, 2008-06-16 at 22:25 +0100, Rob Dixon wrote: > Rick Bragg wrote: > > > > Thanks again, Rob, > > > > I'm afraid that this issue is still not going away, > > It won't go away at a stroke. You are installing a huge Perl library with > external

Re: Mailing List Replies?

2008-06-16 Thread Rick Bragg
On Mon, 2008-06-16 at 22:00 +0200, Dr.Ruud wrote: > Rick Bragg schreef: > > > Is there a reason why the reply-to on this mailing list is set to go > > back to the poster and not back to the list? I think its best for a > > list like this to keep all the messages on t

Re: Problem installing Tie::Watch

2008-06-16 Thread Rick Bragg
On Mon, 2008-06-16 at 20:47 +0100, Rob Dixon wrote: > Rick Bragg wrote: > > On Mon, 2008-06-16 at 17:26 +0100, Rob Dixon wrote: > >> Rick Bragg wrote: > >>> On Mon, 2008-06-16 at 16:12 +0100, Rob Dixon wrote: > >>>> Rick Bragg wrote: > >>>&

Mailing List Replies?

2008-06-16 Thread Rick Bragg
... Thanks Rick -- This message has been scanned for viruses and dangerous content by Green Mountain Network, and is believed to be clean. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Problem installing Tie::Watch

2008-06-16 Thread Rick Bragg
On Mon, 2008-06-16 at 17:26 +0100, Rob Dixon wrote: > Rick Bragg wrote: > > On Mon, 2008-06-16 at 16:12 +0100, Rob Dixon wrote: > >> Rick Bragg wrote: > >>> Hi, > >>> > >>> I am fairly new at using cpan, Here is an error that I got when t

Re: Problem installing Tie::Watch

2008-06-16 Thread Rick Bragg
On Mon, 2008-06-16 at 16:12 +0100, Rob Dixon wrote: > Rick Bragg wrote: > > Hi, > > > > I am fairly new at using cpan, Here is an error that I got when trying > > to install Tie::Watch. > > > > cpan[15]> install Tie::Watch

Problem installing Tie::Watch

2008-06-16 Thread Rick Bragg
t/.cpan/build/Tk-804.028-r9jDlm '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512, won't make Running make test Make had some problems, won't test Running make install Make had some problems, won't install what should I do to install Tie::Watch? T

Beginner needs help

2007-06-27 Thread Rick
re to start would be greatly appreciated. Thanks Rick -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Trouble with line endings

2006-02-12 Thread Rick Triplett
I shared this thread with the support people at Bare Bones Software. This was their reply: Hi Rick, TextWrangler always uses \r (ASCII 13, the canonical carriage return) internally, but you can tell it to use any desired representation on disk for the line endings: Mac (CR), Unix (LF), or

Trouble with line endings

2006-02-10 Thread Rick Triplett
fied the line endings as \r. My perplexities are these: Why did TextWrangler show \r for the line endings after I had save them for Unix (\n)? And, why did Perl have difficulty with the line endings in the first place? Perl is supposed to be sensitive to the operating system it is running on and "do the right thing." Rick Triplett

time()

2006-01-21 Thread Rick Triplett
d help. Or maybe I need a whole new approach? I can try this out, but it will take weeks to get enough results to see if it works. Any suggestions would be greatly appreciated. Rick Triplett -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: PDF-API2

2005-06-21 Thread Rick Measham
rial (that Dermot has read) available at http://www.printaform.com.au/clients/pdfapi2/ (.. and yes, I know there's a broken link) Cheers! Rick Measham #!/bin/perl use PDF::API2; use Image::Magick; use strict; use warnings; # These mean it's much easier to work with dimensions as 5mm

Re: Multiple Perl installations

2004-10-20 Thread Rick Evans
versions for a month or two, but it seems to work ok. If you don't do it often, you can rename the directories by hand. If you need to switch regularly, the batch file is a good way to go. Regards, Rick Evans -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

NNTP Server responses from a perl script?

2004-05-07 Thread Rick Wilson
dule - I'm not allowed to)? Thanks, Rick remove **NOSPAM** from e-mail address to respond -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Multi-page TIFF's to PDF or DOC files

2003-11-08 Thread Rick Nakroshis
Has anyone had any luck with multi-page TIFF images, getting all of the pages to show in a MSWord DOC file or a PDF file, using PDF::API2? On both accounts, I only can get a single page out of a four page TIFF to be displayed, and it's driving me crazy. I want to create a single file by combining

script to test a file.

2003-10-29 Thread Rick Bragg
Hi, I want to write a script that will test the contents of a file. The file being tested will pass only if it contains nothing more than an ip address on one line. Does anyone have a sample of a simple regex to accomplish this? Thanks Rick -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: call one perl script within another

2003-10-22 Thread Rick Edwards
and wait until it completes returning an exit value. Regards Rick Dr Richard Edwards, Web Developer Sift, 100 Victoria Street, Bristol, BS1 6HZ, UK Tel: +44 117 9159600 Fax: +44 117 9159630 http://www.sift.co.uk -Original Message- From: Geer, David van der [mailto:[EMAIL PROTECTED] Sent

Changing file ownership

2003-10-20 Thread Rick Edwards
n function to change the files ownership but this seems terribly long winded. Any suggestions ? Regards Rick Dr Richard Edwards, Web Developer Sift, 100 Victoria Street, Bristol, BS1 6HZ Tel: 0117 9159600 Fax: 0117 9159630 http://www.sift.co.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

CPAN install failure...

2003-10-10 Thread Rick Bragg
Hi, I just tried to install HTML::Parser on my Redhat9 system and I got the following. Should I just force it? if so how is that done... Thanks Rick sorry for all the output... - Running install for module HTML::Parser Running make for G/GA/GAAS/HTML-Parser-3.31.tar.gz Is already

perl install on redhat 9

2003-10-10 Thread Rick Bragg
rpm's without messing up the other installation from source? Thanks Rick -- Rick Bragg Green Mountain Network web: http://www.gmnet.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Executable perl program help!!

2003-08-20 Thread Rick Clary
about is tinyperl. I have been told that it give you executable perl on a floppy. I believe it is on Source Forge. --Rick - Original Message - From: "Dan Muey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, August 20, 2003 10:0

How can I find the module version?

2003-06-10 Thread Rick Ressegger
If I want to know what version of a module is already installed on a system, how can I disclose this? Can multiple versions of a module exist in a library or does one get superceded by another that is installed later? Rick Ressegger Fairmont WV -- To unsubscribe, e-mail: [EMAIL PROTECTED

unicode problem (?)

2003-01-24 Thread Zemer Rick
Hello, I have program that reads in text from an excel spreadsheet (using the Spreadsheet-ParseExcel module) that works great until... one of the cells has text that contains a tilda. It then appears that the program goes ape-s**t and starts printing out unicode (or multi-byte characters). Can

RE: Editors

2002-12-17 Thread Zemer Rick
FWIW: I have been using CodeWright (www.starbase.com), but have recently become enamored with Jedit -- written in Java, open source, supports Perl mode, very extensible I'm still trying to make it "fit" me, but the difficulty lies in me, not in the editor. (www.jedit.org). Codewright is a ve

Beginners -- a suggestion

2002-11-21 Thread Zemer Rick
I too am rather new to Perl, and have found the OpenPerlIDE debugger to be helpful. It is available on sourceforge.net and probably elsewhere. Hope that helps. -rz. "She was trying to construct a life that made sense from things she found in gift shops." -kv. -Original Message- From

Re: Win32::RasAdmin

2002-02-15 Thread Rick Coloccia
://www.ActiveState.com Built 17:16:22 Jan 2 2002 Then you can install rasadmin using ppm from: http://www.open.com.au/radiator/free-downloads/Win32-RasAdmin.ppd -Rick At 08:41 PM 2/15/2002, Veeraraju_Mareddi wrote: >Dear Team, > >I am trying to install Win32::RasAdmin.but I am get

RE: file name matching

2002-01-08 Thread Mahon, Rick
ame for more info. fileparse() can give you the path and file extension also. Hope this helps, Rick -Original Message- From: Scott [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 8:44 AM To: [EMAIL PROTECTED] Subject: file name matching Morning: I need to scan a directory for f