EUREKA!!!!!! I found the right easy way to get global subs!!!!

2003-08-05 Thread ckassab
Hi: Reading the Perl documentation i found that if i declare muy subs like this: $globalp->{mytitle} = sub { my $title = shift; print OUT "$title"; }; The sub is assigned to the variable $globalp->{mytitle} so i can call it just doing: $globalp->{mytitle}("my title

Re: Segmentation faults...

2003-08-05 Thread Luiz Fernando
Justin, Please give more details about your system and configuration. In my experience with Embperl I have discovered that most segfaults are caused by misconfiguration or compiling problems. Regards, -- Luiz Fernando Ribeiro Engenho Soluções S/C Ltda On Mon, 2003-08-04 at 20:57, Justin Harris

Global 'use strict' in 2.x once again

2003-08-05 Thread Bengt Rasmusson
Hello, I'm trying to enforce 'use strict' in in all parts of a page. My page looks like this: test [- use strict; use DBI; use vars qw (@connection_string $dsn $user_name $password $dbh $sth_rubriker); ... $dbh = DBI->connect($dsn, $user_name, $password,{ RaiseError => 1 }); $sth_rubriker = $dbh