P
Phil
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
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