Re: About staying brushed up on perl

2014-07-21 Thread Marilyn Sander, Ken Armstrong
I am now 73 years old and retired one year ago. I used Perl extensively from 1998 until I retired. It can be hard to remember all the tricks, even when you use or write Perl often. When I learned or developed a useful technique, I would keep the program or a bit of it around. I have lots of

Re: Nature of this list

2011-04-23 Thread Marilyn Sander, Ken Armstrong
The F-bomb is totally unnecessary. Such language is for teenagers who do not yet know how to communicate displeasure effectively. Please grow up. Personally, I am finding this discussion fascinating. I have often wondered why the "academics" at IBM would attack each other's presentations. It

Re: How to set LD_LIBRARY_PATH

2010-05-30 Thread Marilyn Sander
On May 29, 2010, at 6:24 AM, Paul Johnson wrote: On Fri, May 28, 2010 at 11:23:32AM -0700, Marilyn Sander wrote: On May 28, 2010, at 9:33 AM, Paul Johnson wrote: On Fri, May 28, 2010 at 06:14:38AM -0400, John Scoles wrote: You will have to set those values before your modules load. So

Re: How to set LD_LIBRARY_PATH

2010-05-28 Thread Marilyn Sander
On May 28, 2010, at 9:33 AM, Paul Johnson wrote: > On Fri, May 28, 2010 at 06:14:38AM -0400, John Scoles wrote: > >> You will have to set those values before your modules load. >> >> So you should stick them in the BEGIN and that should work > > ... except where it doesn't, such as on Solaris

Re: How to get environment variables from child shell

2010-05-27 Thread Marilyn Sander
On May 27, 2010, at 4:58 PM, Jim Gibson wrote: > On 5/27/10 Thu May 27, 2010 4:51 PM, "Bob Sadri" > scribbled: > >> Hi >> I have a perl script that calls a csh script. The csh script sources some >> environment variables (among others). When the control comes back to my >> perl script I lik

Re: Location of Perl libraries

2010-05-26 Thread Marilyn Sander
On May 26, 2010, at 3:35 PM, Shawn H Corey wrote: > On 10-05-26 05:41 PM, Marilyn Sander wrote: >> What would be the preferred practice here? > > See `perldoc lib` > > > -- > Just my 0.0002 million dollars worth, > Shawn > Thanks, this document just exp

Location of Perl libraries

2010-05-26 Thread Marilyn Sander
Hi, Perl Experts. I'm writing some Perl scripts that are for driving the build of some software for my company. The build runs on Windows machines. We have several build machines, and they will all use the same scripts and same Perl modules. Now, I'm not a Windows person; I'm much more accus

Re: system() call in END() subroutine overrides script exit value

2010-05-17 Thread Marilyn Sander
I On May 17, 2010, at 11:21 AM, John W. Krahn wrote: > John W. Krahn wrote: >> Kelly Jones wrote: >>> I did this in tcsh: >>> perl -le 'exit(2); sub END {system("date");}' ; echo $status >>> Mon May 17 11:09:43 MDT 2010 >>> 0 >>> >>> In other words, the return value of the date command in

Re: Perl rounding errors?

2010-04-26 Thread Marilyn Sander
On Apr 26, 2010, at 11:22 AM, Uri Guttman wrote: >> "JWK" == John W Krahn writes: > > i must have not see the OP's reply yet so this is mostly for him. > >>> This is the routine as it looks now (I would be happy to hear about errors >>> or improvements that you might see) >>> sub round { >

Treatment of Windows paths in Activestate Perl

2010-03-17 Thread Marilyn Sander
rl on all the other machines until some time in the middle of last week. Then it changed. Drove me crazy for a couple of days until I wrote the following test case and verified the new behavior. TIA, Marilyn Sander >type tryperl.pl for $i ( 0.. scalar(@ARGV) -1 ) { $arg=

Re: perl

2007-03-31 Thread Marilyn Sander
Or just open Windows Explorer and see if the file is there. If it isn't, search for it. --Marilyn On Mar 31, 2007, at 6:54 PM, yitzle wrote: [error] client [127.0.0.1] OS3 The system cannot specified the path specified: *C:\Program Files\Apache Group\Apache2\cgi-bin\first.pl *This means

Re: To Reference or not to reference

2007-03-29 Thread Marilyn Sander
nding some simple data constructs? I'm not being facetious or sarcastic. I characterize OO as "syntactic sugar" only as a straw man to knock down. I really would like to know what people see as the advantage to OO in this situation. thanks, --Marilyn Sander On Mar 29, 2007, at

Re: hi please clarify my doubts

2006-02-14 Thread Marilyn Sander
t; -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > -- Marilyn E. Sander[EMAIL PROTECTED] Database (CM) Engineer

Re: Continuing the Basic Question

2006-02-09 Thread Marilyn Sander
On Feb 9, 2006, at 2:18 PM, Avinash Sridhar wrote: Hello, I installed ActivePerl, then wrote up a sample helloworld.pl script, stored it on the desktop, then ran this command from the cmd prompt. C:\Documents and Settings\Administrator> perl C:\Documents and Settings\Administrator\Desktop\ h

Re: "system" command help

2005-11-09 Thread Marilyn Sander
On Nov 9, 2005, at 4:52 PM, Pablo Wolter wrote: The system function call returns a boolean value as return value, I don't remember if 1 is for fail and 0 for success or viceversa. Actually it is not a boolean value. It is a two-byte value, and each byte is an integer. You need to look up t

Re: help with matching

2005-11-09 Thread Marilyn Sander
Hello, Rob. On Nov 9, 2005, at 10:49 AM, Rob.Savino wrote: I'm working on a simple script to get a list of users who do not exist while (<>) { At this point, $_ ends with "\n". $user = system("echo $_"); This statement will set $user to the returned value from system(), which wi

Re: Perl/sh/bash scripts and emacs

2005-10-29 Thread Marilyn Sander
Thanks, John. That did it. --Marilyn On Oct 29, 2005, at 10:11 PM, John W. Krahn wrote: Marilyn Sander wrote: thank you very much for the trouble you have taken with your answer. I acknowlege that our script is not the same as the example in "Programming Perl". We really need t

Re: Perl/sh/bash scripts and emacs

2005-10-29 Thread Marilyn Sander
u've made some useful suggestions in the code below and also asked why I've done things certain ways. I've inserted answers. On Oct 29, 2005, at 3:51 AM, John W. Krahn wrote: Marilyn Sander wrote: Not sure how much of a beginner question this is. I've been searching mail archiv

Perl/sh/bash scripts and emacs

2005-10-28 Thread Marilyn Sander
l gets control, skips the bash code, finds the second shebang line, honors the -w flag, and runs the script. But if we change the initial shebang line to #!/bin/bash -- # -*- perl -*- then Perl does not skip the bash code, and gives lots of error messages. So it looks like the advice in the Camel

Looking for Dan Muey

2004-07-31 Thread Sander
I hope this isn't in violation of forum etiquette, but I am looking for Dan Muey. He used to post a lot on here and I need to contact him. Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to send results to more than one recipient

2004-01-20 Thread Sander
"James Edward Gray II" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Jan 19, 2004, at 3:23 PM, Sander wrote: > > > I have a simple form that I have been using for a while, but now I > > need to > > send the data to two email addresses.

How to send results to more than one recipient

2004-01-19 Thread Sander
_______ Any help would be appreciated. Thanks, Sander -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

first steps with perl, a log reader

2003-11-16 Thread Sander
is giving the message that print has an unopened filehandle ERRORLOG at line 7. But as i can see, i *did* open it (ofcourse i didn't, but what happend... i thought the $_ would give all the info, readed bij . Thanx for helping :) Sander -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

CGI and Exchange 2000

2003-03-17 Thread Liebert, Sander
I know this is slightly off topic, but I have yet to find someone that can answer this. I have a new Exchange 2000 server, since it was installed, the cgi scripts on my ISP's server will not send mail from my scripts anymore. Relaying is disabled in Exchange 2000 and I have read that in order for i

Free cgi-bin?

2003-03-17 Thread Liebert, Sander
> Does anyone know of a free cgi-bin. I am having some problems with a > script and wanted to narrow it down to rule out email. I don't need a > free website, just a place that can run and execute my script. I have > searched on google, but I'm only coming up with free web hosts. > -- To unsu

Splitting Output into multiple messages

2003-03-13 Thread Liebert, Sander
gth. I was wondering if it would be better for me to create multiple 130 characters text fields in my script and send them individually or if I should figure out how to have the PRINT MAIL split them. I'm less than a beginner so all thoughts would be appreciated. Thanks, Sander -- To unsu

Regular Expression's and punctuation

2003-01-27 Thread Liebert, Sander
I have a script that is used for text messaging. I added a line of code to check to make sure that input is in a field before the message is sent. My code is as follows: if($b !~ m/^\w[\w\s]*\w$/) { $error .= "Enter a message \n"; } This fails if the field has any punctuation characters. I have

Easiest way to disable the ENTER key on a from

2003-01-24 Thread Liebert, Sander
only work with a mouse click. Thanks Sander -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Quick regex prob

2003-01-23 Thread Liebert, Sander
/^\w(?:[\w\s]*\w)?$/ works well for multiple words, but how do I check a date that is in the format 01/22/03 I think that it is hanging up on the / Thanks for everyone's help. Sander -Original Message- From: Dan Muey [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003