Need some help...

2009-06-13 Thread Rob Fugina
I've been away from the list for a while, but now I'm wondering if everyone else hasn't, as well. Is anybody still here? I've been having some trouble writing a couple of modules with object states recently -- usually I stick to inline states -- and I was hoping someone here would be able to

Re: Need some help...

2009-06-13 Thread Rocco Caputo
Please turn on warnings. You are using my ($kernel, $self, $heap) = $_[KERNEL, OBJECT, HEAP]; when an array slice is needed my ($kernel, $self, $heap) = @_[KERNEL, OBJECT, HEAP]; Note the difference between 1) poerbook:~% perl -e 'my ($a, $b, $c) = $x[0,1,2];' (no output) and with

Re: Need some help...

2009-06-13 Thread Rob Fugina
A nasty error no doubt due to my rapid attempt at whipping up an example program. I've checked my original code suffering from the problem, and it doesn't suffer from the same problem. In my other code, I'm still having problems finding the object reference in the _start handler (or any other,

Re: Need some help...

2009-06-13 Thread Rocco Caputo
Sorry, works for me: % perl -Mstrict -MPOE -MData::Dumper -wle ' quote my $self = bless { key = value }; quote quote POE::Session-create( quote object_states = [ $self = [_start] ], quote heap = { alias = Alias } quote ); quote quote sub _start { quote my ($k, $s, $h) = @_[KERNEL, OBJECT,

Re: Need some help...

2009-06-13 Thread Rob Fugina
I'm attaching my actual module, minus the path (for your convenience), and a test script that demonstrates the error. It doesn't suffer from the original array slice problem. I've done this before (object states, that is), but they were fragile even then -- or they are now, anyway. I'm sure

Re: POE site not displayed correctly under IE7

2009-06-13 Thread Phil Whelan
Hi Rocco, You can change this in your global.css #navigation { FONT-SIZE: 8pt; WIDTH: 100px } to this... #navigation { float: left; FONT-SIZE: 8pt; WIDTH: 100px } Cheers, Phil On Sat, Jun 13, 2009 at 6:52 PM, Rocco Caputorcap...@pobox.com wrote: Sorry about that.  

Re: Need some help...

2009-06-13 Thread Phil Whelan
Hi Rob, I think you have the POE::Sesssion-create syntax slightly wrong. This is from the docs POE::Session-create( object_states = [ $object_1 = { event_1a = method_1a }, $object_2 = { event_2a = method_2a }, ], inline_states = { event_3 = \piece_of_code,

Re: POE site not displayed correctly under IE7

2009-06-13 Thread Rocco Caputo
Change applied. Thank you, Phil. -- Rocco Caputo - rcap...@pobox.com On Jun 14, 2009, at 00:33, Phil Whelan wrote: Hi Rocco, You can change this in your global.css #navigation { FONT-SIZE: 8pt; WIDTH: 100px } to this... #navigation { float: left; FONT-SIZE: 8pt;