RE: switch

2002-10-12 Thread nkuipers
Nevermind I am completely on crack, ignore my entire last email, your putting a scalar in a for loop threw me off. You are in fact binding against $_. I will now retreat under a rock of embarassment and seriously re-consider my association with the entire Perl language. What a crappy day...

Re: Is this correct? print syntax

2002-10-12 Thread Michael Fowler
On Fri, Oct 11, 2002 at 01:50:53PM -0500, James Edward Gray II wrote: > It's the indirect method call syntax, as far as I understand. It looks like it, but it isn't. See http:[EMAIL PROTECTED]/msg33969.html for a recent discussion on that. > Personally though, I wouldprefer to see your example

Re: Is this correct? print syntax

2002-10-12 Thread James Edward Gray II
On Friday, October 11, 2002, at 05:01 PM, Michael Fowler wrote: > On Fri, Oct 11, 2002 at 01:50:53PM -0500, James Edward Gray II wrote: >> It's the indirect method call syntax, as far as I understand. > > It looks like it, but it isn't. See > http:[EMAIL PROTECTED]/msg33969.html for a > recent

Re: switch

2002-10-12 Thread Jim Thomason
Try this: SWITCH: { $a >= 90 && do {print "A"; last SWITCH;}; $a >=80 && do {print "B"' last SWITCH;}; $a >=70 && do {print "C"; last SWITCH;}; $a >=60 && do {print "D"; last SWITCH;}; print "F"; } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: emacs perl mode

2002-10-12 Thread Elias Assmann
On Fri, 11 Oct 2002, David Garamond wrote: > is anybody aware of other perl > modes out there which might be 'smarter'? Yes, cperl-mode might help you. It came with my Emacs distribution. Be aware, however, that it isn't perfect either. At least in my version, it has a problem with the \( ... )

Re: Program Stability Issue

2002-10-12 Thread rob
Chris Benco wrote: >The problem is that the script is supposed to loop basically forever until >it finds something. It does this for awhile. The program works for about >24 hours at which point it just stops. I've tried changing to loop time > > As a wag.. is it possible you are checking for

emacs perl mode

2002-10-12 Thread David Garamond
i've recently upgraded emacs from 20 to 21.2 and was delighted that the syntax coloring now works over telnet sessions. however, i've noticed that the perl mode which comes with the emacs distribution is not 'smart' enough. mainly, it can't detect strings which are quoted by q() or qq() (unfor

Segfaults

2002-10-12 Thread Fogle Cpl Shawn B
When I make perl segfault due to something stupid I did should I just ignore it or report it as a bug? (yes I can reproduce it) thanks shawn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Cleaning lines

2002-10-12 Thread Tom Allison
John W. Krahn wrote: > Tom Allison wrote: > >>I'm trying to make a little perl script that reads the subject >>lines from email. > > >>From files on your HD or from an SMTP server? > SMTP server. I'm trying to make an enhanced filter to procmail. -- Tact is the art of making a point wit

postfix sendmail error

2002-10-12 Thread Tom Allison
procmail: Executing "/root/confirm.pl" sendmail: warning: the Postfix sendmail command has set-uid root file permissions sendmail: warning: or the command is run from a set-uid root process sendmail: warning: the Postfix sendmail command must be installed without set-uid root file permissions --

Re: Segfaults

2002-10-12 Thread Paul Johnson
On Sat, Oct 12, 2002 at 04:10:59PM +0400, Fogle Cpl Shawn B wrote: > When I make perl segfault due to something stupid I did should I just ignore > it or report it as a bug? (yes I can reproduce it) perl shouldn't segfault, even if you've done something silly. If the problem still exists in 5.8

Re: very confused - chdir not working

2002-10-12 Thread mike
On Fri, 2002-10-11 at 23:08, Michael Fowler wrote: > On Fri, Oct 11, 2002 at 04:40:30PM +0100, mike wrote: > > ../build.pl > > /root/cvs/esound # this the output of $dir3 > > / > > > > cannot change No such file or directory at ./build.pl line 13, > > line 55. > > this is ls in same directory, a

Re: html regular expressions

2002-10-12 Thread Ovid
--- "Matthew C. Peterson" <[EMAIL PROTECTED]> wrote: > while reading the o'eilly book 'learning perl' i came across a section > dealing with reg. expressions for html. they recommended grabbing a robust > module from cpan to help with these, but i can't quite seem to find one > specifically for th