Oh my goodness. I need to read the manuals more carefully...
By default $dbh = DBI->connect(...) returns a $dbh blessed into the DBI::db class. And the $dbh->prepare method returns an $sth blessed into the DBI::st class (actually it simply changes the last four characters of the calling...
Hi, somebody tried inheriting DBI?
package Test::TMYDBI;
our @ISA = qw(DBI);
use base 'DBI';
sub execute {
my($this) = shift;
print "test";
return $this->SUPER::execute();
}
I get the following error:
DBI subclasses 'Test::TMYDBI::db' and ::st are not setup...
newperluser, in the sampwo mistakes. First the g flag of the reg exp - without it you will replace only the first ocurrence of the expression. Second you don't anything with the replaced string - may be prin/store it somewhere - it is replaced only in the $_ variable, but not in the file.
Corwin
$uri = URI->new( $url );
$uri->query_form( $query_params );
my $req = HTTP::Request->new( POST=>$uri );
$ua->request($req);
Where the $query_params is a hash reference with the names and values of the params.
Corwin
Hi.
Can you tell me what is the best practice to compose and escape params, when using LWP.
Currently I am doing that:
my $params = shift;
my $params_as_str;
if ( ref $params eq 'HASH' && $params ) {
foreach my $k ( keys %{$params} ) {
$params_as_str .=...
I wanna create my own simple database (one table with 4-5 columns), and hold it in some files. Also wanna use select/update statements the same way as in DBI interface allows. Can somebody hint me the best way(a module), which I can do that?
Corwin
I need to AutoSave using XML HTTP Request, when change a field ot just to understand when there is changed field in the form. Currently I am simulating onchange event with onfocus and onblur. The problem is that when change the field, and close the browser without bluring it, I can't understand...
Hi I am trying to use the CPAN command line install utility with NT, but it gives me the following error:
'isntall' is not recognized as internal or external command, operable program or batch file.
Corwin
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.