Re: [Boston.pm] Dan and the Pie

2004-08-02 Thread Uri Guttman
FL == Federico Lucifredi [EMAIL PROTECTED] writes: FL It appears fellow Boston.pm monger Dan Sugalski has lost a bet FL to Guido Van Rossum concerning how fast Python would run under FL Parrot. The result was a pie-in-the-face event on the final day of FL the OSCON. FL

[Boston.pm] Weird regex behavior?

2004-08-02 Thread Palit, Nilanjan
Folks, Here's a weird regex behavior I'm getting that I don't understand. Problem description: Look at the 2 if (s/.../.../) statements below [marked (Case A) (Case B)]. They are basically identical each get the same input. The only difference is that the 2nd regex has a \s* at the start of

Re: [Boston.pm] Weird regex behavior?

2004-08-02 Thread Ron Newman
On Aug 2, 2004, at 8:04 AM, Palit, Nilanjan wrote: In each case, the actual $_ substitution occurs fine. Case A seems to behave as expected. However, in case B, somehow $1 $2 lose their value once inside the {}. This does not happen when I run your program with perl 5.8.1-RC3 on MacOS X 10.3.4

RE: [Boston.pm] Weird regex behavior?

2004-08-02 Thread Palit, Nilanjan
Yeah -- it seems like an issue with older versions of Perl. I tried it with newer versions (5.6.1 5.8) and it works as expected. I wonder what caused it to break in the older versions ... Thanks, -Nilanjan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

Re: [Boston.pm] Weird regex behavior?

2004-08-02 Thread Kenneth A Graves
Just tried it with version 5.005_03 built for i386-freebsd, and the captures worked. So the problem isn't with all old versions. --kag ___ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] Dan and the Pie

2004-08-02 Thread Dan Sugalski
At 1:57 AM -0400 8/2/04, Uri Guttman wrote: FL == Federico Lucifredi [EMAIL PROTECTED] writes: FL It appears fellow Boston.pm monger Dan Sugalski has lost a bet FL to Guido Van Rossum concerning how fast Python would run under FL Parrot. The result was a pie-in-the-face event on the

[Boston.pm] Reminder: Tech Meeting Tomorrow, Tuesday, August 3

2004-08-02 Thread Ronald J Kimball
Boston.pm will have a tech meeting Tuesday, August 3, at Boston University, Kenmore Classroom Building, 565 Commonwealth Ave, room 106 (directions below), starting at 7:30pm. We'll have two presentations at tomorrow's meeting. Ian Langworth will be giving a talk on Kwiki, a Wiki environment

Re: [Boston.pm] uploading a picture with perl

2004-08-02 Thread Sean Quinlan
On Mon, 2004-08-02 at 17:34, Alex Brelsfoard wrote: open (UPLOAD, $filepath) || Error(Could not write $filepath); while ($bytesread=read($picture,$buffer,1024)) { print UPLOAD $buffer; } close (UPLOAD); $picture is the path to the picture on the user's system. And

Re: [Boston.pm] uploading a picture with perl

2004-08-02 Thread Ron Newman
Assuming your using CGI.pm (and you really do want to for this sort of thing, IMHO) all you should need to add to your CGI is: use CGI qw(:standard); my $cgi = new CGI; my $picture = $cgi-upload('forms_file_field_name'); Error(no file?) unless defined $picture; # your

[Boston.pm] Re: Uploading a picture with perl

2004-08-02 Thread Alex Brelsfoard
Ron, Sean, Thank you both. I will give it a try. Sean, no worries, I have a two-layered security system in place, and plenty of well-placed warnings. I'm perfectly happy using CGI.pm (and am currently on this project). But I am a bit curious to know if there is a way to do this without

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-02 Thread Mike Burns
--- Alex Brelsfoard mumbled on 2004-08-02 19.32.40 -0400 --- project). But I am a bit curious to know if there is a way to do this without using CGI.pm. You could write CGI.pm yourself. Either copy and paste the relevant bits, or use this Web page:

Re: [Boston.pm] Dan and the Pie

2004-08-02 Thread Uri Guttman
DS == Dan Sugalski [EMAIL PROTECTED] writes: and yours truly purchased the pies and the beer (with funds from the tpf auction which had a group bid of $520 for us to also pie dan). they were coconut cream and chocolate cream and i sprayed a whole can of real whipped cream on top of

Re: [Boston.pm] Dan and the Pie

2004-08-02 Thread Andrew Pimlott
On Tue, Aug 03, 2004 at 12:08:49AM -0400, Uri Guttman wrote: and you should have closed your eyes, dummy! :) Maybe Dan should give a talk about taking a pie in the face, so these mistakes aren't repeated. Andrew ___ Boston-pm mailing list [EMAIL