Excellent info coming in, so far.  

If its true that we have to use two versions of Perl Expect.PM
(ActiveState) and Perl Expect.PM (Unix)...

 then wouldn't that pose double script maintenance issues? My
Expect(tcl) script is simplified and centralized to one file. Its
capable of switching back and forth to WinNT, WinXP, Win2000 as well
as all flavors of Unix (multiple times).

What is the solution to this? Would it work if we simply did an OS
check at the beginning of the perl script. If Win is going to be the
target, then load ActiveStateExpect.pm. If Unix, Load UnixExpect.pm
module.

More opinions of Expect(tcl) versus Perl in regards to this specific
scenario would be greatly appreciated.


On Sun, 13 Feb 2005 13:01:17 -0500, Scott Pham <[EMAIL PROTECTED]> wrote:
> Perl Expect on Windows CON:
> Expect perl module can't be used on a Windows platform.
> 
> Looks like your best bet is to use activestate TCL if it's on windows.
> 
> 
> On Sat, 12 Feb 2005 17:27:54 -0800, perl perl <[EMAIL PROTECTED]> wrote:
> > Hi, I'd like to narrow the previous Expect(tcl) question so that an
> > answer can be extracted:
> > Perl vs Expect(tcl) question again.
> >
> > Here is a specific Expect example:
> > I have a release engineering build script that performs the following:
> >
> > Launch masterbuild.tcl (expect script) from WinNT server.
> > This script will perform the below task:
> >
> > 1). Enter Solaris server, perform authentication, set the Solaris
> > build environment, then run GNU make to compile all C++ code, exit
> > Solaris.
> > 2). Enter HPUX server, perform authentication, set the HPUX build
> > environment, then run GNU make to compile all c++ code, exit HPUX.
> > 3.) Enter winXP server, perform authentication, set the XP build
> > variables, then run NMAKE to compile c++ code, exit XP.
> >
> > Question1:
> > Expect is very efficient in performing the above task. Can Perl do the
> > same task above?
> > Surely Perl can. But what are the pros and cons? PROS and CONS would
> > be very nice to know. Performance advantages?  Assuming you're an
> > skilled with both, which one is faster to set up from scratch?
> >
> > Question2: :-)
> > How do you implement the Expect script above into Perll? Are there
> > several modules to choose from?
> >
> > thanks,
> > W
> >
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > <http://learn.perl.org/> <http://learn.perl.org/first-response>
> >
> >
>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to