Re: delete by id ?

[prev] [thread] [next] [Date index for 2005/02/09]

From: raptor
Subject: Re: delete by id ?
Date: 18:59 on 09 Feb 2005
Errors Output

   1. Can't use string ("15") as a HASH ref while "strict refs" in use at /usr/lib/perl5/site_perl/5.8.2/Class/DBI.pm line 1091. , /usr/lib/perl5/site_perl/5.8.6/Apache/ASP.pm line 1518 

Debug Output

   1. Can't use string ("15") as a HASH ref while "strict refs" in use at /usr/lib/perl5/site_perl/5.8.2/Class/DBI.pm line 1091. , /usr/lib/perl5/site_perl/5.8.6/Apache/ASP.pm line 1518 

ASP to Perl Script 

  -: use strict;;;use vars qw($Application $Session $Response $Server $Request);;
  -: #line 1 /path/to/do_del.asp
  1: ;;
  2:     my $id = $Request->Params('id');
  3:     unless ($id) {
  4: 	$error = "No ID specified"; $Response->End()
  5:     }
  6: 
  7: #    my $obj = $class->retrieve($id);
  8: #    $obj->delete();
  9:     no strict 'refs';
 10:     $class->delete($id);
 11: ; 



On Tue, 8 Feb 2005 22:01:03 +0000
Tony Bowden <tony-cdbitalk@xxxxx.xxx> wrote:

|On Tue, Feb 08, 2005 at 10:59:01PM +0200, raptor wrote:
|> Can I do ,
|> $Class->delete($id);
|> instead of :
|> my $obj = $Class->retrieve($id)
|> $obj->delete();
|
|What happened when you tried?
|
|Tony
|
|

delete by id ?
raptor 20:59 on 08 Feb 2005

Re: delete by id ?
Tony Bowden 22:01 on 08 Feb 2005

Re: delete by id ?
raptor 18:59 on 09 Feb 2005

Re: delete by id ?
Perrin Harkins 19:09 on 09 Feb 2005

Re: delete by id ?
Tony Bowden 19:13 on 09 Feb 2005

Generated at 10:21 on 11 Feb 2005 by mariachi v0.52