SWF spider

2003-09-17 Thread Paul Makepeace
Do the any .swf parsers provide a list of all the anchors and referred- to media in a movie? Put another way, given a .swf, is there a way of knowing what further HTTP requests would and could be generated from loading and/or then interacting with it? Paul -- Paul Makepeace

Re: Thinking YAPC::America::South::Brazil

2003-09-17 Thread Dan Sugalski
On Wed, 17 Sep 2003, Luis Campos de Carvalho wrote: >Here at Brazil.pm.org we're thinking about having our own YAPC > conference in a near future. We barelly know about other YAPC::* > Conferences arround the world. Cool! More YAPCs are a good thing! >Is there any pre-reqs for a countr

Thinking YAPC::America::South::Brazil

2003-09-17 Thread Luis Campos de Carvalho
Dear London Perl M[ou]ngers Here at Brazil.pm.org we're thinking about having our own YAPC conference in a near future. We barelly know about other YAPC::* Conferences arround the world. Is there any pre-reqs for a country have it's own YAPC? Is there any place where I can go and ask for

Re: [OT] accessors pragma

2003-09-17 Thread Damian Conway
Steve Purkis asked: Will generated accessors be overridable? Indeed they will. If the class has an explicitly declared method of the same name, that method will prevent the accessor from being generated. And, of course, accessors are just methods, so derived classes can override them in the nor

Re: [ot] doubtless silly perl question

2003-09-17 Thread Joel Bernstein
On Wed, Sep 17, 2003 at 09:27:03AM +0100, Piers Cawley wrote: > Joel Bernstein <[EMAIL PROTECTED]> writes: > > > I have a problem with some code which I'm trying to debug. I'm not > > certain, but I think perhaps I'm doing something wrong in the following > > line - perhaps inadvertently creating

Re: Surrey.pm

2003-09-17 Thread Natalie Ford
On Wed, 17 Sep 2003 09:21:31 +0100, Piers Cawley wrote: > One wonders if there's any nearby town in Surrey whose name begins > with D. Dorking is not *very* near to Guildford but is between Leatherhead and Horsham on the A24...

Re: Database setup

2003-09-17 Thread Andy Wardley
Kate L Pugh wrote: > So you're starting a new project, and you've designed a database > schema, and you want to write some code to set up the tables in the > database. I use a template to generate the setup script for me. A

Re: Database setup

2003-09-17 Thread Richard Clamp
On Wed, Sep 17, 2003 at 02:51:28PM +0100, alex wrote: > I know it isn't exactly what you want - it being java and not perl, but it > might help. I can't remember if anyone directed me to a perl version. Seems like it went through the typical sourceforge lifecycle. Mailing list post: http://www

Re: Class:DBI problems...

2003-09-17 Thread Dominic Mitchell
Graham Seaman <[EMAIL PROTECTED]> wrote: > On Wed, 17 Sep 2003, Dominic Mitchell wrote: >> This sounds extremely like you've imported a load of CGI.pm routines >> into that classes namespace... > > You're right, but I don't understand how: another vhost (not using > Class:DBI or in any way relate

Re: Database setup

2003-09-17 Thread alex
At 14:10 17/09/03, Kate L Pugh wrote: Now I hate doing things over and over again. I just found myself copying and pasting this code for the second time this month, and it makes me feel dirty. Surely there is a simple module on CPAN that I can pass a big pile of CREATE TABLE statements to, and it

Re: Database setup

2003-09-17 Thread Roger Burton West
On Wed, Sep 17, 2003 at 02:46:16PM +0100, Jonathan Peterson wrote: >[Kake] >> So you write the following module: >Really? I just write the SQL in text files and run them through the >database's built in client. I write the table definitions in a different format and run them through a converter t

Re: Database setup

2003-09-17 Thread Jonathan Peterson
> So you're starting a new project, and you've designed a database > schema, and you want to write some code to set up the tables in the > database. You know this won't be a one-off, since you'll want to > initialise a test database every time you run your tests, plus you > plan to deploy your app

Re: Surrey.pm

2003-09-17 Thread Simon Wilcox
On Wed, 17 Sep 2003, Andy Wardley wrote: > Guildford or Surbiton would be better, being on fast (haha) rail links > up t'smoke way. Dorking is a smaller, harder to get to, and generally > full of antique shops. Surbiton++ # walking distance from my house > I'll look into some of the pubs in th

Re: [OT] accessors pragma

2003-09-17 Thread Steve Purkis
On Wednesday, September 17, 2003, at 12:34 pm, Sam Vilain wrote: [snip!] Either of these are good IMHO: $class->set_attribute("value"); $class->attribute = "value"; In both cases, it is 100% clear that the `$class' object it having its `attribute' member updated. The first example up there is

Re: [OT] accessors pragma

2003-09-17 Thread Shevek
On Wed, 17 Sep 2003, Robin Berjon wrote: > Shevek wrote: > > On Wed, 17 Sep 2003, Robin Berjon wrote: > >>sub foo { @_==2 ? shift->{foo} = pop : shift->{foo} } > > > > This is semantically different, and therefore not an appropriate answer. > > Semantically different from what, and an appropriat

Re: [OT] accessors pragma

2003-09-17 Thread Robin Berjon
Shevek wrote: On Wed, 17 Sep 2003, Robin Berjon wrote: Shevek wrote: On Wed, 17 Sep 2003, Robin Berjon wrote: sub foo { @_==2 ? shift->{foo} = pop : shift->{foo} } This is semantically different, and therefore not an appropriate answer. Semantically different from what, and an appropriate answer to

Re: Database setup

2003-09-17 Thread Richard Clamp
On Wed, Sep 17, 2003 at 02:10:49PM +0100, Kate L Pugh wrote: > Now I hate doing things over and over again. I just found myself > copying and pasting this code for the second time this month, and it > makes me feel dirty. Surely there is a simple module on CPAN that I > can pass a big pile of CRE

Database setup

2003-09-17 Thread Kate L Pugh
So you're starting a new project, and you've designed a database schema, and you want to write some code to set up the tables in the database. You know this won't be a one-off, since you'll want to initialise a test database every time you run your tests, plus you plan to deploy your application i

Re: [OT] accessors pragma

2003-09-17 Thread Steve Purkis
On Wednesday, September 17, 2003, at 11:38 am, Mark Fowler wrote: On Tue, 16 Sep 2003, Steve Purkis wrote: There are two popular styles of accessor I'd like to support: # classic: print "I set foo!" if $obj->foo( $a_value ); # chaining: $obj->foo( $a_value )

Re: [OT] accessors pragma

2003-09-17 Thread Robin Berjon
Shevek wrote: On Wed, 17 Sep 2003, Robin Berjon wrote: sub foo { @_==2 ? shift->{foo} = pop : shift->{foo} } This is semantically different, and therefore not an appropriate answer. Semantically different from what, and an appropriate answer to what? It DTRT. -- Robin Berjon <[EMAIL PROTECTED]> Re

Re: [OT] accessors pragma

2003-09-17 Thread Jasper McCrea
Sam Vilain wrote: > > Either of these are good IMHO: > > $class->set_attribute("value"); > $class->attribute = "value"; The latter I don't like. Although it's very intuitive as a setter, I don't like having (giving, I really mean) such unfettered access to such things. I like to check values

Re: Surrey.pm

2003-09-17 Thread Andy Wardley
Piers Cawley wondered: > ..if there's any nearby town in Surrey whose name begins with D. Simon Wistow wrote: > Dorking? No, I'm typing with my hands this time. :-) Guildford or Surbiton would be better, being on fast (haha) rail links up t'smoke way. Dorking is a smaller, harder to get to, a

Re: Class:DBI problems...

2003-09-17 Thread Graham Seaman
On Wed, 17 Sep 2003, Dominic Mitchell wrote: > This sounds extremely like you've imported a load of CGI.pm routines > into that classes namespace... > You're right, but I don't understand how: another vhost (not using Class:DBI or in any way related to the problem site) had just started using C

Re: [OT] accessors pragma

2003-09-17 Thread Sam Vilain
On Wed, 17 Sep 2003 11:55, Steve Purkis wrote; > Hmm, that's very similar in spirit to the 'classic' form. > > Will generated accessors be overridable? I can see how 'given' would > be useful, but what if I wanted to say this: > > $grunt.name( "Patton" ) > .

Re: [OT] accessors pragma

2003-09-17 Thread Steve Purkis
On Wednesday, September 17, 2003, at 10:48 am, Paul Makepeace wrote: Je 2003-09-17 10:21:50 +0100, Robin Berjon skribis: sub foo { @_==2 ? shift->{foo} = shift : shift->{foo} } sub foo { @_==2 ? $_[0]->{foo} = $_[1] : $_[0]->{foo} } Probably marginally quicker, and doesn't leave that niggly

Re: [OT] accessors pragma

2003-09-17 Thread Steve Purkis
On Wednesday, September 17, 2003, at 10:08 am, Michel Rodriguez wrote: On Tue, 16 Sep 2003, Steve Purkis wrote: On Tuesday, September 16, 2003, at 02:53 pm, Andy Wardley wrote: On the other hand, I find it quite acceptable to have get_foo() that returns the foo, and set_foo($new_value) which s

Re: [OT] accessors pragma

2003-09-17 Thread Shevek
On Wed, 17 Sep 2003, Mark Fowler wrote: > On Tue, 16 Sep 2003, Steve Purkis wrote: > > That having been said, are you aware of Want? If you want to do the above > you can do something like this: > > use Want; > > if (want('OBJECT')) > { >$self->_set_foo($_[0]); >retur

Re: Class:DBI problems...

2003-09-17 Thread Dominic Mitchell
Tony Bowden <[EMAIL PROTECTED]> wrote: > On Tue, Sep 16, 2003 at 06:15:19PM +0100, Graham Seaman wrote: >> Failure while doing 'SELECT issue_id, title, number, current >> FROM Site::Issue >> WHERE current = ? >> ' with 'SearchSQL in Site::Issue' >> DBD::mysql::st execute failed: You have an er

Re: [OT] accessors pragma

2003-09-17 Thread Steve Purkis
On Tuesday, September 16, 2003, at 09:51 pm, Damian Conway wrote: For what it's worth... Perl 6 classes will autogenerate accessors that return the underlying attribute itself as an lvalue: class DogTag { has $.name is public; has $.rank is public;

Re: [OT] accessors pragma

2003-09-17 Thread Steve Purkis
On Wednesday, September 17, 2003, at 02:50 am, Randal L. Schwartz wrote: "Steve" == Steve Purkis <[EMAIL PROTECTED]> writes: I've seen: print "Old version of foo was " . $obj->foo( $new_foo ); (gtk, I think), and print "New version of foo is now " . $obj->foo( $new_foo ); Steve> This is the

Re: [OT] accessors pragma

2003-09-17 Thread Steve Purkis
On Wednesday, September 17, 2003, at 02:49 am, Randal L. Schwartz wrote: "Steve" == Steve Purkis <[EMAIL PROTECTED]> writes: Steve> Hi all, Steve> With the help of others, I've been bashing out an 'accessors' pragma[1]: Steve> use accessors qw( foo bar baz ); Steve> There are two popular sty

Re: [OT] accessors pragma

2003-09-17 Thread Mark Fowler
On Tue, 16 Sep 2003, Steve Purkis wrote: > There are two popular styles of accessor I'd like to support: > > # classic: > print "I set foo!" if $obj->foo( $a_value ); > > # chaining: > $obj->foo( $a_value ) > ->bar( $another_value ); Firstly, I prefer proper exce

Re: [OT] accessors pragma

2003-09-17 Thread Shevek
On Wed, 17 Sep 2003, Robin Berjon wrote: > David Cantrell wrote: > > On Wed, Sep 17, 2003 at 11:21:50AM +0200, Robin Berjon wrote: > >> sub foo { @_==2 ? shift->{foo} = shift : shift->{foo} } > > > >^ ^ > > Is the order of evaluation of those two shift()

Re: [OT] accessors pragma

2003-09-17 Thread Shevek
On Wed, 17 Sep 2003, Robin Berjon wrote: > Richard Clamp wrote: > > @_ will still have an element in it after shifting off $self, so the > > old favourite: > > > > sub foo { > > my $self = shift; > > if (@_) { > > $self->{foo} = shift; > > } > > $self->{foo}; # or $s

Re: [OT] accessors pragma

2003-09-17 Thread Nicholas Clark
On Wed, Sep 17, 2003 at 11:58:27AM +0200, Robin Berjon wrote: > Nicholas Clark wrote: > > There's just been a long thread about this on p5p. > > I think that "not really" is the current answer, and it's proved impossible > > to cleanly write down what the order of evaluation is. > > In the above li

Re: [OT] accessors pragma

2003-09-17 Thread Robin Berjon
David Wright wrote: sub foo { @_==2 ? shift->{foo} = shift : shift->{foo} } Why bother shifting at all then? sub foo { @_==2 ? $_[0]->{foo} = $_[1] : $_[0]->{foo} } Because it's cuter and easier to type. Oh, and it's nigh impossible to tell them apart: === use Benchmark qw(timethese cmpthese);

Re: [OT] accessors pragma

2003-09-17 Thread Michel Rodriguez
On Wed, 17 Sep 2003, Paul Makepeace wrote: > Je 2003-09-17 10:21:50 +0100, Robin Berjon skribis: > > sub foo { @_==2 ? shift->{foo} = shift : shift->{foo} } > >sub foo { @_==2 ? $_[0]->{foo} = $_[1] : $_[0]->{foo} } > > Probably marginally quicker, and doesn't leave that niggly feeling about

Re: [OT] accessors pragma

2003-09-17 Thread Robin Berjon
Nicholas Clark wrote: There's just been a long thread about this on p5p. I think that "not really" is the current answer, and it's proved impossible to cleanly write down what the order of evaluation is. In the above line, they evaluate right to left, because the RHS of the assignment is being eval

Re: [OT] accessors pragma

2003-09-17 Thread Robin Berjon
David Cantrell wrote: On Wed, Sep 17, 2003 at 11:21:50AM +0200, Robin Berjon wrote: sub foo { @_==2 ? shift->{foo} = shift : shift->{foo} } ^ ^ Is the order of evaluation of those two shift()s guaranteed? I thought about that as I was writing it, I normally

Re: [OT] accessors pragma

2003-09-17 Thread Paul Makepeace
Je 2003-09-17 10:21:50 +0100, Robin Berjon skribis: > sub foo { @_==2 ? shift->{foo} = shift : shift->{foo} } sub foo { @_==2 ? $_[0]->{foo} = $_[1] : $_[0]->{foo} } Probably marginally quicker, and doesn't leave that niggly feeling about which shift might be evaluated in what order in a fut

Re: [OT] accessors pragma

2003-09-17 Thread David Wright
> > @_ will still have an element in it after shifting off $self, so the > > old favourite: > > > > sub foo { > > my $self = shift; > > if (@_) { > > $self->{foo} = shift; > > } > > $self->{foo}; # or $self; > > } > > > > Will still have something to assign. > > While

Re: [OT] accessors pragma

2003-09-17 Thread Nicholas Clark
On Wed, Sep 17, 2003 at 10:40:06AM +0100, David Cantrell wrote: > On Wed, Sep 17, 2003 at 11:21:50AM +0200, Robin Berjon wrote: > > >sub foo { @_==2 ? shift->{foo} = shift : shift->{foo} } >^ ^ > Is the order of evaluation of those two shift()s guarante

Re: [OT] accessors pragma

2003-09-17 Thread David Cantrell
On Wed, Sep 17, 2003 at 11:21:50AM +0200, Robin Berjon wrote: >sub foo { @_==2 ? shift->{foo} = shift : shift->{foo} } ^ ^ Is the order of evaluation of those two shift()s guaranteed? -- Lord Protector David Cantrell | http://www.cantrell.org.uk/davi

Re: [OT] accessors pragma

2003-09-17 Thread Tom Insam
At 10:00 +0100 2003/09/17, Richard Clamp wrote: > How? I can't see how that would work.. @_ will still have an element in it after shifting off $self, so the gaaah. ok, I can see that. -- .tom

Re: Class:DBI problems...

2003-09-17 Thread Graham Seaman
On Wed, 17 Sep 2003, David Wright wrote: > See the bottom of perldoc Class::DBI: > >To join the users list visit >http://groups.kasei.com/mail/info/cdbi-talk > Oops, didn't RTFM. Thanks! Graham

Re: [OT] accessors pragma

2003-09-17 Thread Robin Berjon
Richard Clamp wrote: @_ will still have an element in it after shifting off $self, so the old favourite: sub foo { my $self = shift; if (@_) { $self->{foo} = shift; } $self->{foo}; # or $self; } Will still have something to assign. While I'm not a golfer and am usuall

Re: Class:DBI problems...

2003-09-17 Thread Paul Makepeace
Je 2003-09-17 10:06:04 +0100, Graham Seaman skribis: > > The Class::DBI list may be able to help you better ... > > > I looked on class-dbi.com, and tried googling for <'class::dbi' mailing > list> with no luck; any hints? http://search.cpan.org/author/TMTM/Class-DBI-0.94/lib/Class/DBI.pm#SUPPOR

Re: Class:DBI problems...

2003-09-17 Thread David Wright
> > > The Class::DBI list may be able to help you better ... > > > I looked on class-dbi.com, and tried googling for <'class::dbi' mailing > list> with no luck; any hints? See the bottom of perldoc Class::DBI: To join the users list visit http://groups.kasei.com/mail/info/cdbi-talk

Re: Class:DBI problems...

2003-09-17 Thread Graham Seaman
On Tue, 16 Sep 2003, Tony Bowden wrote: > The Class::DBI list may be able to help you better ... > I looked on class-dbi.com, and tried googling for <'class::dbi' mailing list> with no luck; any hints? Graham > Tony > >

Re: [OT] accessors pragma

2003-09-17 Thread Michel Rodriguez
On Tue, 16 Sep 2003, Steve Purkis wrote: > On Tuesday, September 16, 2003, at 02:53 pm, Andy Wardley wrote: > > On the other hand, I find it quite acceptable to have get_foo() > > that returns the foo, and set_foo($new_value) which sets the > > new value for foo and returns the object. In this

Re: [OT] accessors pragma

2003-09-17 Thread Tom Insam
At 17:59 +0100 2003/09/16, Steve Purkis wrote: Secondly, with the current implementation an 'undef' argument will trigger a set for both 'classic' and 'chained' accessors: $book->author($a); # still sets when $a = undef How? I can't see how that would work.. -- .tom

Re: [OT] accessors pragma

2003-09-17 Thread Richard Clamp
On Wed, Sep 17, 2003 at 09:47:43AM +0100, Tom Insam wrote: > At 17:59 +0100 2003/09/16, Steve Purkis wrote: > > > >Secondly, with the current implementation an 'undef' argument will > >trigger a set for both 'classic' and 'chained' accessors: > > > > $book->author($a); # still sets when $a = u

RE: Surrey.pm

2003-09-17 Thread Gareth Kirwan
> On Wed, Sep 17, 2003 at 09:21:31AM +0100, Piers Cawley said: > > One wonders if there's any nearby town in Surrey whose name begins > > with D. If there is then Leon could come along to the first meet and > > get one more notch on his 'alphabet of mongers groups of which Leon > > is a founder mem

Re: [ot] doubtless silly perl question

2003-09-17 Thread Piers Cawley
Chris Devers <[EMAIL PROTECTED]> writes: > On Tue, 16 Sep 2003, Shevek wrote: > >> On Tue, 16 Sep 2003, Joel Bernstein wrote: >> >> > I have a problem with some code which I'm trying to debug. I'm not >> > certain, but I think perhaps I'm doing something wrong in the >> > following line - perhaps

Re: Surrey.pm

2003-09-17 Thread Nicholas Clark
On Wed, Sep 17, 2003 at 09:21:31AM +0100, Piers Cawley wrote: > One wonders if there's any nearby town in Surrey whose name begins > with D. If there is then Leon could come along to the first meet and > get one more notch on his 'alphabet of mongers groups of which Leon > is a founder member' bel

Re: Surrey.pm

2003-09-17 Thread Simon Wistow
On Wed, Sep 17, 2003 at 09:21:31AM +0100, Piers Cawley said: > One wonders if there's any nearby town in Surrey whose name begins > with D. If there is then Leon could come along to the first meet and > get one more notch on his 'alphabet of mongers groups of which Leon > is a founder member' belt.

Re: [ot] doubtless silly perl question

2003-09-17 Thread Piers Cawley
Joel Bernstein <[EMAIL PROTECTED]> writes: > I have a problem with some code which I'm trying to debug. I'm not > certain, but I think perhaps I'm doing something wrong in the following > line - perhaps inadvertently creating an array slice? > > what do you understand by the line: > my $fo

Re: back to the 80's

2003-09-17 Thread Piers Cawley
Steve Keay <[EMAIL PROTECTED]> writes: > On Mon, Sep 15, 2003 at 09:43:51PM +0100, Paul Makepeace wrote: >> How about photographs that already exist? I have photos of my Jupiter >> Ace, and Sharp MZ-80K she's welcome to. (They're pics for ebay as >> they're about to be sold.) > > Apparently that's

Re: Surrey.pm

2003-09-17 Thread Piers Cawley
Richard Atkinson <[EMAIL PROTECTED]> writes: > On Tue, 16 Sep 2003, Andy Wardley wrote: > >> I live in Guildford, Surrey and I'm also rather partial to beer. >> I think it must be time to organise the second ever Surrey.pm >> meeting. > > But /are/ there any decent real ale pubs in Guildford? It's