On Saturday 29 April 2006 10:43 am, Mr. Shawn H. Corey wrote:
> On Sat, 2006-29-04 at 10:28 -0700, tom arnall wrote:
> > i'm try to use 'Tie::StdScalar' but perl tells me it can't find it. I've
> > pushed '/usr/share/perl/5.8.7' onto @INC. the error is:
> >
> > Can't locate Tie/StdScalar.pm in @INC
> >
> > in '/usr/share/perl/5.8.7/Tie/Scalar.pm' there is 'package
> > Tie::StdScalar' etc.
> >
> > thanks,
> >
> > tom arnall
> > north spit, ca
>
> Is the module Tie::Scalar? See `perldoc Tie::Scalar` for details.
>
>
i solved the above-described problem by putting StdScalar in its own .pm file,
but now i get (working from the debugger):
DB<2> use Tie::StdScalar
DB<2> tie $f,'StdScalar'
Can't locate object method "TIESCALAR" via package "StdScalar" at
(eval 11)[/usr/share/perl/5.8/perl5db.pl:628] line 2.
but in StdScalar.pm there is:
package Tie::StdScalar;
@ISA = (Tie::Scalar);
sub TIESCALAR {
my $class = shift;
my $instance = shift || undef;
return bless \$instance => $class;
}
thanks in advance,
tom arnall
north spit, ca
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>