Re: [Boston.pm] iperl.20040215.xxx

2004-02-11 Thread John Tobey
ROTECTED] > http://mail.pm.org/mailman/listinfo/boston-pm -- John Tobey <[EMAIL PROTECTED]> \^-^ /\ /\ ___ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] using {3-8} instead of {3, 8} doesn't produce eve n a warning?

2004-01-28 Thread John Tobey
On Tue, Jan 27, 2004 at 05:15:33PM -0500, Tolkin, Steve wrote: > Thanks for the explanation. > > So this is a documented "feature". > > I was fooled by believing the general principle that special > characters are special unless escaped with a backslash. > I would have greatly preferred consisten

Re: [Boston.pm] ORA-01000 problem

2004-01-07 Thread John Tobey
feats RaiseError.) I always recommend $dbh->{'RaiseError'} = 1 as a default. I don't understand the philosophy that wants to continue blindly processing when things go wrong. Regards, -John -- John Tobey <[EMAIL PROTECTED]> \^-^ /\ /\ __

Re: [Boston.pm] OT: court ruling

2003-08-26 Thread John Tobey
On Tue, Aug 26, 2003 at 09:21:23AM -0400, [EMAIL PROTECTED] wrote: > It's a sad day today: > > http://story.news.yahoo.com/news?tmpl=story&u=/ap/20030826/ap_on_hi_te/dvd_encryption The EFF puts on a positive spin: http://eff.org/IP/Video/DVDCCA_case/20030825_eff_bunner_pr.p

Re: [Boston.pm] empty versus zero

2003-08-14 Thread John Tobey
erl -le '$x="bIa"; $x++; print $x' bIb [EMAIL PROTECTED] (0) ~ $ perl -le '$x="bIa"; $x += 1; print $x' 1 [EMAIL PROTECTED] (0) ~ $ Unless writing throwaway code, I usually pretend Perl didn't have ++ and -

Re: [Boston.pm] Slightly OT but Still a perl technique question???

2003-07-30 Thread John Tobey
rl module. > If failed - it needs to reissue the incoming page with an error message set. > > I'm currently using some javascript commands embedded with image buttons > to control this but my problem is how to get the new window opened PRIOR > to calling the module to generat

Re: [Boston.pm] bogofilter db files

2003-07-27 Thread John Tobey
t.dir and spamlist.pag. Try adding this before the first dbmopen: @AnyDBM_File::ISA = ("DB_File"); Or this might also work: use DB_File; dbmopen defaults to using DBM, NDBM, or some other dbm format on your system. The other formats use *.dir and *.pag files.

Re: [Boston.pm] emacs discussion

2003-07-08 Thread John Tobey
On Tue, Jul 08, 2003 at 05:02:57PM -0700, Ranga Nathan wrote: > After a long+ weekend I find that the cygwin - > emacs discussion is still raging :) Indeed. Maybe it's time for a change of pace. Anyone up for a friendly discussion of the merits of HTML mail? ;) -- John To

Re: [Boston.pm] Basic matrix analysis

2003-05-27 Thread John Tobey
ode; last; } } print "\t$outcode"; } print "\n"; } Hope this helps. -- John Tobey <[EMAIL PROTECTED]> \^-^ /\ /\ ___ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] Perl 6 has become too complex

2003-03-15 Thread John Tobey
e a nested sub in current versions of Perl. Apart from having global subs pasted into an outer block by something like Apache::Registry, what good does the current nested sub feature do? Of course, some code somewhere relies on them being g

Re: [Boston.pm] Perl 6 has become too complex

2003-03-14 Thread John Tobey
On Fri, Mar 14, 2003 at 04:31:06PM -0500, Andrew Pimlott wrote: > On Fri, Mar 14, 2003 at 04:32:17PM -0500, John Tobey wrote: > > > > YES. That's what we want. That is how Scheme and Common Lisp work. > > That would make for cleaner code. > > Well, Common Lisp

Re: [Boston.pm] Perl 6 has become too complex

2003-03-14 Thread John Tobey
rry and I'll make it happen. Thanks but I'll pass. I've given up on Perl 6 (but not on Parrot). -- John Tobey <[EMAIL PROTECTED]> \^-^ /\ /\ ___ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] Perl 6 has become too complex

2003-03-14 Thread John Tobey
e, thus giving the contained sub > nothing to close over) > > Now, if the named lexically scoped sub actually got re-instantiated > every time, *that* would be different. YES. That's what we want. That is how Scheme and Common Lisp

Re: [Boston.pm] cgi file permissions

2003-03-02 Thread John Tobey
On Sun, Mar 02, 2003 at 12:26:40PM -0500, Bob Rogers wrote: >From: John Tobey <[EMAIL PROTECTED]> >Date: Sun, 2 Mar 2003 10:42:29 -0500 > >The clean and safe solution would be to run your own copy of the web >server (if allowed) or configure the existing se

Re: [Boston.pm] cgi file permissions

2003-03-02 Thread John Tobey
some of the aforementioned bugs.) Even this solution will not work if, for example, the filesystem is configured to ignore the setuid bit. It is a question for the system administrator. -- John Tobey <[EMAIL PROTECTED]> \^-^ /\ /\ ___ Boston-pm

Re: [Boston.pm] Email filtering...

2003-02-11 Thread John Tobey
d on the English yes, but Carp? -- John Tobey <[EMAIL PROTECTED]> \^-^ /\ /\ ___ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] Email filtering...

2003-02-11 Thread John Tobey
that does anything to any of the three variables, if that code is intended for use in programs that may use regexes heavily. Since a module or "library" should not assume things about what kind of programs will use it, essentially all code should avoid them. In one-liners without performanc

Re: [Boston.pm] Email filtering...

2003-02-11 Thread John Tobey
("Our server cannot figure out how to send mail to "" >. html_quotify($domain_name) . "". Here is the " >. "error returned by the name server:\n" >. html_quotify($&) -- John Tobey <[EMAIL PROTECTED]> \^-^ /\ /\ ___ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] Module naming conventions

2003-02-10 Thread John Tobey
On Mon, Feb 10, 2003 at 06:59:00AM -0800, [EMAIL PROTECTED] wrote: > > > It almost makes me wish there was a > > namespace on CPAN dedicated to this kind of grouping, like "BIZ::" or > > "CORP::" or "PRIV::" or something "official" like that. Is this what you want? `perldoc perlmodlib`

Re: [Boston.pm] least overlap co-ordinate

2003-02-04 Thread John Tobey
. > > also even though Bit::Vector is mostly in C you could write your own > specialized code with Inline::C to speed up those row/bit tests. Surely PDL does this already? http://pdl.perl.org -- John Tobey <[EMAIL PROTECTED]> \^-^ /\ /\

Re: [Boston.pm] Looking for an elegant solution.

2003-02-02 Thread John Tobey
"]\n". The final "]\n" is your "extra array entry". $_='use_name,mat_id,use_id,use_fname,mat_name,use_lname'; $_ =~ s/(([a-zA-Z0-9]+)_\w+)/push @{$group{"$2"}}, "$1"; $1/ge; print "$_\n"; for( keys %group ) { print &qu

Re: [Boston.pm] environment variables that "stick"

2003-01-16 Thread John Tobey
On Thu, Jan 16, 2003 at 05:52:24PM +, David Cantrell wrote: > On Thu, Jan 16, 2003 at 12:30:36PM -0500, Ron Newman wrote: > > Unix folks are used to these limitations on how you can use > > environment variables. Do things work the same way in Windows? > > It's quite some years since I last

Re: [Boston.pm] environment variables that "stick"

2003-01-16 Thread John Tobey
On Thu, Jan 16, 2003 at 11:51:46AM -0500, Charles Reitzel wrote: > At 09:51 AM 1/16/2003 -0500, [EMAIL PROTECTED] wrote: > >That's a bummer. > >TMTOWTDI becomes NCD -> No Can Do > > If it is any consolation, it isn't Perl's fault. It is inherent in the > nature of parent/child processes. The ch

Re: [Boston.pm] A XS question

2003-01-10 Thread John Tobey
On Fri, Jan 10, 2003 at 03:08:27PM +0700, Komtanoo Pinpimai wrote: > Hello, > >I've started learning XS technology, I know howto pass/return > primitive data, such as int,scalar,array.. > The problem is howto pass/return C struct, Have you looked at the "Perl Objects And C Structures" sectio

Re: [Boston.pm] Job listings by programming language

2003-01-07 Thread John Tobey
egories/languages/ > > > ___ > Boston-pm mailing list > [EMAIL PROTECTED] > http://mail.pm.org/mailman/listinfo/boston-pm -- John Tobey <[EMAIL PROTECTED]> \^-^ /\ /\ ___ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] search list

2002-11-27 Thread John Tobey
orted array. If Perl list is built >basing on data structures that enhance searching, it is possible to provide built-in >fuction for searching !? > > > Regards, > > > ___ > Boston-pm mailing list > [EMAIL PROTECTED] > http://mail.pm.org

Re: [Boston.pm] perl and .net

2002-11-04 Thread John Tobey
On Mon, Nov 04, 2002 at 08:25:34PM -0500, James Freeman wrote: > The horrorthe horror > > http://aspn.activestate.com/ASPN/Downloads/PerlNET/More > > Any thoughts? They seem to be running Perl code in a non-Perl framework by piping it to a Perl server and converting the answer back to .N

Re: [Boston.pm] Listing ourselves at bugc.org and BostonUserGroups.com

2002-10-22 Thread John Tobey
On Tue, Oct 22, 2002 at 07:36:45AM -0400, Ron Newman wrote: > > We're not listed in either place. Should we be? Yes, feel free to go ahead and get us listed. ;-) -- John Tobey <[EMAIL PROTECTED]> \^-^ ___ Boston-pm mailing list

Re: [Boston.pm] question & puzzle

2002-10-11 Thread John Tobey
On Thu, Oct 10, 2002 at 10:15:01PM -0400, Matthew Brooks wrote: > GREG: Check out Kurt Starsinic's B::Fathom module > > This is what John Tobey's latest code scores: > > $ perl -MO=Fathom -le'$_=1;for$n(2..9){s/\S+/$&$n $&+$n > $&*$n/g}2002-eval||print for split' >48 tokens >15 expressio

Re: [Boston.pm] question & puzzle

2002-10-10 Thread John Tobey
On Thu, Oct 10, 2002 at 02:54:19PM -0400, John Tobey wrote: > On Thu, Oct 10, 2002 at 02:21:49PM -0400, Kenneth Graves wrote: > > I've tried unrolling the recursion: > > > > perl -le'@b=(1);for$n(2..9){@b=map{($_.$n,"$_+$n","$_*$n")}@b}eval

Re: [Boston.pm] question & puzzle

2002-10-10 Thread John Tobey
80 characters. 2002-eval||print $ alias p=perl $ p -le'@b=1;for$n(2..9){@b=map{$_.$n,"$_+$n","$_*$n"}@b}2002-eval||print for@b' 1*23+45*6*7+89 1*2+34*56+7+89 -- John Tobey <[EMAIL PROTECTED]> \^-^ ___ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] file uploads w/Perl CGI

2002-10-04 Thread John Tobey
On Fri, Oct 04, 2002 at 03:34:38PM -0400, Sean Quinlan wrote: > On Fri, 2002-10-04 at 11:23, John Tobey wrote: > > On Fri, Oct 04, 2002 at 01:40:49PM -0400, Sean Quinlan wrote: > > > > > Then in the subroutine where you read the file: > > > my $datafile = $CGI-

Re: [Boston.pm] file uploads w/Perl CGI

2002-10-04 Thread John Tobey
= upload('file')". (I am happy using the function interface to CGI.pm.) -- John Tobey <[EMAIL PROTECTED]> \^-^ ___ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] file uploads w/Perl CGI

2002-10-04 Thread John Tobey
inful in the past. I imagine it is still a pretty imprecise science, though I'll be happy to be proved wrong. Can you require users to save the spreadsheet in a non-Excel format such as tab-delimited for uploading? -- John Tobey <[EMAIL PROTECTED]> \^-^

Re: [Boston.pm] $/ and pattern matching

2002-09-24 Thread John Tobey
b() operator. readline($fh) is the same as <$fh>. How you detect whether "there is any standard input" (or what you mean by that) is another interesting question. Here is one answer. sub is_there_any_standard_input { return (-f(STDIN) || -p(STDIN)

Re: [Boston.pm] Reminder: Tech Meeting Tonight

2002-09-17 Thread John Tobey
ents, and they should not have to subscribe to two lists. Subscribe one or the other, depending on whether or not you want to receive non-announcements, too. -- John Tobey <[EMAIL PROTECTED]> \^-^ ___ Boston-pm mailing list [EMAIL PROTECTED

Re: [Boston.pm] Getopt:: module question

2002-09-12 Thread John Tobey
Long once or twice, but its poor documentation (lack of *simple* examples) drives me back to ::Std. If I really want long options, I'm more likely to code up some elsif ($arg eq '--foo-bar') than spend two hours trying to fathom Getopt::Long. Isn't impatience one of the thre

Re: [Boston.pm] Re: Unknown error

2002-09-11 Thread John Tobey
On Wed, Sep 11, 2002 at 08:36:01PM -0400, [EMAIL PROTECTED] wrote: > John Tobey wrote: > > I predict that assigning "" to $@ gives the same result. > > nope. Rats! > Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration: Well, 5.6.0 is not exactl

Re: [Boston.pm] Re: Unknown error

2002-09-11 Thread John Tobey
at leaves junk in $@ . I am curious what version of perl you use. I am confident that every version since 5.003 and probably earlier has bugs relating to $@ . Why not try printing out $@ right before your "solution" statement. -- John Tobey <[EMAIL PROTECTED]> \^-^ _

Re: [Boston.pm] Unknown error

2002-09-11 Thread John Tobey
reenter it via eval. Of course, the appearance of 'Unknown error' can be considered an interpreter bug, but you might be able to make your program easier to swallow by cutting down on 'use' and eval-string. If all else fails