RE: sendmail arguments

2010-04-29 Thread John Bruin
. John > -Original Message- > From: Uri Guttman [mailto:u...@stemsystems.com] > Sent: Thursday, 29 April 2010 4:11 p.m. > To: John Bruin > Cc: beginners@perl.org > Subject: Re: sendmail arguments > > >>>>> "JB" == John Bruin writes: > &g

sendmail arguments

2010-04-28 Thread John Bruin
I have inherited a Perl script which sends and parses email. I am having trouble trying to figure out what the "-oi" and "-oem" arguments do in the sub below. Can anyone help? Thanks John sub mail(*) { my $top = shift; open(MAIL, "| $sendmail -t -oi -oem") or die "open: $!";

RE: Perl script to build a forum

2007-07-24 Thread John Bruin
You will have more luck searching on "CPAN" "perl" "forum". HTH John -Original Message- From: Mahurshi Akilla [mailto:[EMAIL PROTECTED] Sent: Wednesday, 25 July 2007 8:40 a.m. To: beginners@perl.org Subject: Perl script to build a forum Does anyone know if there's a perl script availabl

RE: dowloading files from O'Reilly

2006-03-27 Thread John Bruin
Hi Christopher This link may be useful. http://www.issociate.de/board/post/313670/Does_anyone_have_%22coconet.dat%22 ?.html > -Original Message- > From: Christopher Spears [mailto:[EMAIL PROTECTED] > Sent: 28 March 2006 11:07 > To: beginners@perl.org > Subject: dowloading files from O

RE: Splitting on white space

2006-03-15 Thread John Bruin
Thanks very much - I has completely missed whitespace before the slash. John > -Original Message- > From: Timothy Johnson [mailto:[EMAIL PROTECTED] > Sent: 16 March 2006 14:41 > To: John Bruin; beginners@perl.org > Subject: RE: Splitting on white space > > > I

Splitting on white space

2006-03-15 Thread John Bruin
Hi everyone Can anyone please tell me why the code below is not splitting the 'two three'? If I use '\s*' instead of 's{1,}' it works but I would have thought the code below would have been more precise. my $string = 'one two threefour'; my @temp = split(/ \s{1,}/,$string); my $count_tem

RE: Continuing the Basic Question

2006-02-09 Thread John Bruin
> -Original Message- > From: Leif Ericksen [mailto:[EMAIL PROTECTED] > Sent: 10 February 2006 11:47 > To: John Bruin > Cc: 'Avinash Sridhar'; beginners@perl.org > Subject: RE: Continuing the Basic Question > > On Fri, 2006-02-10 at 11:30 +1300, Joh

RE: Continuing the Basic Question

2006-02-09 Thread John Bruin
> -Original Message- > From: Avinash Sridhar [mailto:[EMAIL PROTECTED] > Sent: 10 February 2006 11:18 > To: beginners@perl.org > Subject: Continuing the Basic Question > > Hello, > I installed ActivePerl, then wrote up a sample > helloworld.pl script, stored it on the desktop, then ra

RE: LLama and camels books

2005-10-13 Thread John Bruin
Hi Dion Have a look at "Perl for Dummies". If you are new to programming you might find it more readable. Then have another go at Learning Perl. HTH John > -Original Message- > From: Dion Markus [mailto:[EMAIL PROTECTED] > Sent: 14 October 2005 10:09 > To: beginners@perl.org > Subject:

Passing variable to second file

2005-05-02 Thread John Bruin
I have a script that is divided into 2 files for manageability. Each is about 700 lines in length and the second file is called using the 'Require' method. Is there an easy way of passing a variable from the first file to the second? Or should I be looking at using @Export or something similar? T

RE: Date calculations and daylight saving

2004-11-22 Thread John Bruin
TECTED]>, > [EMAIL PROTECTED] (John Bruin) writes: > >> From: Bob Showalter [mailto:[EMAIL PROTECTED] > >> If you switch from daylight savings time at 2am on Sunday, October > >> 31, then the difference between the local times of noon on > Saturday > &

RE: Date calculations and daylight saving

2004-11-21 Thread John Bruin
> -Original Message- > From: Bob Showalter [mailto:[EMAIL PROTECTED] > Sent: 20 November 2004 02:35 > To: 'John Bruin'; 'Perl Beginners List' > Subject: RE: Date calculations and daylight saving > > John Bruin wrote: > > I have a script

Date calculations and daylight saving

2004-11-18 Thread John Bruin
I have a script that calculates difference between dates and it works well. However if the 2 dates straddle our daylight saving times (March, October) then the result is either plus or minus an hour compared to the expected result. I am using date::parse (which uses Time::Local) to convert the dat

RE: Called script does not return a true value?

2004-11-16 Thread John Bruin
Scott No, so I have now put '1;' at the end of 'second_script.pl' and this has stopped the message. Thanks very much. John -Original Message- From: Scott Pham [mailto:[EMAIL PROTECTED] Sent: 17 November 2004 11:13 To: 'John Bruin'; [EMAIL PROTECTED] Subje

Called script does not return a true value?

2004-11-16 Thread John Bruin
I have a perl script that calls another perl script. Originally it was one big script but then I decided to split it into 2. It works fine but was wondering what the following error message refers to: "second_script.pl did not return a true value at first_script.pl line 235" This message is gener

RE: time manipulation

2004-10-17 Thread John Bruin
I performed a similar process using 2 modules: Date::Parse (to convert date strings to unix seconds) POSIX (strftime function) and Perls standard localtime function to convert back from unix seconds to a formatted date string POSIX is a standard module so your system probably already has it. J

RE: Newbie needs help changing date format

2004-08-26 Thread John Bruin
27 August 2004 9:35 a.m. To: John Bruin; [EMAIL PROTECTED] Subject: Re: Newbie needs help changing date format > Hi > > I have a list of dates that have been converted to epoch seconds, processed > and then converted back to a string (using timelocal). The resulting > date format is

Newbie needs help changing date format

2004-08-26 Thread John Bruin
Hi I have a list of dates that have been converted to epoch seconds, processed and then converted back to a string (using timelocal). The resulting date format is:- "Wed Mar 16 22:10:16 2004" What is the easiest way to convert this format (or epoch seconds) to "16-Mar-2004 22:10" - preferrably u