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
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
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]>
\^-^
/\ /\
__
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
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 -
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
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.
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
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
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
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
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
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
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
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
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
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
("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
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`
.
>
> 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]>
\^-^
/\ /\
"]\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
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
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
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
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
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
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
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
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
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
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
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-
= 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
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]>
\^-^
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)
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
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
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
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]>
\^-^
_
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
40 matches
Mail list logo