Re: 'Tie::StdScalar' - perl tells me it can't find it
- From: kloro2006@xxxxxxxxx (Tom Arnall)
- Date: Sat, 29 Apr 2006 13:04:07 -0700
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
.
- References:
- 'Tie::StdScalar' - perl tells me it can't find it
- From: Tom Arnall
- Re: 'Tie::StdScalar' - perl tells me it can't find it
- From: Mr. Shawn H. Corey
- 'Tie::StdScalar' - perl tells me it can't find it
- Prev by Date: Re: RegEx (m//) & Flinstones
- Next by Date: Re: 'Tie::StdScalar' - perl tells me it can't find it
- Previous by thread: Re: 'Tie::StdScalar' - perl tells me it can't find it
- Next by thread: Re: 'Tie::StdScalar' - perl tells me it can't find it
- Index(es):
Relevant Pages
|