Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Bug in $obj->expect() ... ? (Expect 1.15)

Reply
Thread Tools

Bug in $obj->expect() ... ? (Expect 1.15)

 
 
Phil
Guest
Posts: n/a
 
      07-07-2006
So I have a bunch of modules and a script running on Solaris, and am
now testing on Mac OS X.

An expect object is instantiated, and stored within a hash, something
like:

$hash->{_expect} = new Expect;

Then, later I make calls to this object's expect() method like so:

$hash->{_expect}->expect(......);

On Solaris, this works no problem, however, on Mac OS X, I get the
following:

expect(): ERROR: if called directly (not as $obj->expect(...), but as
Expect::expect(...), first parameter MUST be '-i' to set an object
(list) for the patterns to work on.

So, I've printed $_[0] within Expect's expect() subroutine, and the
only difference is:

$VAR1 = bless( {
'_expect' => bless( \*Symbol::GEN2, 'Expect' ),


$VAR1 = bless( {
'_expect' => bless( \*Symbol::GEN3, 'Expect' ),

The former being from the Mac OS X installation, and the latter from
the Solaris (2.9) Installation. Both are Expect 1.15, and Perl 5.8.6.

Thoughts?

--phil

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
*bug* *bug* *bug* David Raleigh Arnold Firefox 12 04-02-2007 03:13 AM
ASP.NET Login control bug or SQL 2005 bug? RedEye ASP .Net 2 12-13-2005 10:57 AM
Re: BUG? OR NOT A BUG? John ASP .Net 2 09-21-2005 10:31 AM
Bug Parade Bug 4953793 Michel Joly de Lotbiniere Java 4 12-02-2003 05:05 AM
how to report bug to g++ ? got a bug and fixed up source code DarkSpy C++ 4 06-27-2003 09:05 AM



Advertisments