[17179] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 4591 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Oct 12 03:05:38 2000

Date: Thu, 12 Oct 2000 00:05:14 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <971334314-v9-i4591@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Thu, 12 Oct 2000     Volume: 9 Number: 4591

Today's topics:
        $ARGV[0] in one-liner in Unix csh alias? <lincmad001@telecom-digest.zzn.com>
    Re: 2 questions iamnotananimal@my-deja.com
        Access DB & Perl <berube@odyssee.net>
    Re: CGI.pm & the query string (Wyatt R Johnson)
        challenging problem paceman97@aol.com
    Re: Cutesy Arrows - Just say no! (was Re: Convert array <MBalenger@att.net>
    Re: Cutesy Arrows - Just say nope! <godzilla@stomp.stomp.tokyo>
    Re: Defining an Operator (not overloading) <MBalenger@att.net>
    Re: Defining an Operator (not overloading) <jdb@wcoil.com>
    Re: Filehandle to string (or HTTP::Request)? (Charles DeRykus)
    Re: hoe to alter @INC? (Rafael Garcia-Suarez)
    Re: How to get params after use Mod? <elephant@squirrelgroup.com>
    Re: How to get params after use Mod? (Mark-Jason Dominus)
    Re: How to get params after use Mod? <kistler@gmx.net>
        html form <michael@omon.net>
    Re: html form <jeff@vpservices.com>
    Re: html form <michael@omon.net>
    Re: http_cookie not set in ms ie <elephant@squirrelgroup.com>
    Re: http_cookie not set in ms ie (brian d foy)
    Re: I can't get .pm files to work!!! help please! <elephant@squirrelgroup.com>
    Re: Invoking ssh from a script (Dave Sherohman)
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Wed, 11 Oct 2000 23:50:38 -0700
From: Linc Madison <lincmad001@telecom-digest.zzn.com>
Subject: $ARGV[0] in one-liner in Unix csh alias?
Message-Id: <111020002350384188%lincmad001@telecom-digest.zzn.com>

What I want to do is create an alias in csh (Unix C shell) which will
allow me to do something like this:

% alias foo "perl -e 'print qq($ARGV[0]\n);' <<grab argument>> "
% foo bar
bar

Of course, as written, that doesn't work. I've been looking through the
Perl docs and FAQs and the Unix man pages, but I can't figure out how
to get the Unix argument to the Perl one-liner.

It seems like what I would want to do is:

% alias foo "perl -e 'print qq($ARGV[0]\n);' $1"

or

% alias foo "perl -e 'print qq($ARGV[0]\n);' \$1"

I've also tried throwing in various permutations of "eval" and other
things, but all my attempts complain that ARGV is an undefined
variable, or I have "badly placed ()s" or something.

Is there a way to pass a command-line argument to a one-liner that is
in a C-shell alias?

-- 
For faster reply, please use LincPerl.LincMad@Com, reversing punctuation


------------------------------

Date: Thu, 12 Oct 2000 05:42:24 GMT
From: iamnotananimal@my-deja.com
Subject: Re: 2 questions
Message-Id: <8s3j00$n4d$1@nnrp1.deja.com>

In article <Pine.GHP.4.21.0010101545360.21331-100000@hpplus03.cern.ch>,
  "Alan J. Flavell" <flavell@mail.cern.ch> wrote:
> On Tue, 10 Oct 2000 iamnotananimal@my-deja.com wrote:
>
> > > That's not a Perl-related question.
> > >
> > I thought print "Content-type: text/html\n\n"; was specific perl
> > notation used to display output to browser from a perl script.
>
> That's your problem, then, along with the misguided subject line.
>
That's your subjective opinion. You are of course a pedant.
> > I was after notation used to clear the screen that is specific to
perl.
>
> What?
>
You seem to construe a sin not knowing everything every other good
perl programmer knows and a greater crime in asking. Heaven forbid a
poorly worded or non-savvy question. I may not know the right
questions for you but it's fairly plain you don't know the right anwsers
for me - either. The reply from Clay Irving was sufficient. He does not
a defender to come to his assistance. The last word was his. I got my
reply. I yeild. Have a nice day.

> > I take it there is none.
>
> I take it you are hopelessly confused.  Perl is a programming
> language.  If you know what you want it to output, then it has a
> notation for producing that output.  It (the programming language)
> cares not what the output means or does.
>
> > thanks for trying,
>
> You're the one who's trying.
>
That's the point of the ng, I hope.

> good luck.
>
I hope you fare better also.

ianaa


Sent via Deja.com http://www.deja.com/
Before you buy.


------------------------------

Date: Thu, 12 Oct 2000 00:31:41 -0400
From: "Neb" <berube@odyssee.net>
Subject: Access DB & Perl
Message-Id: <U5bF5.862$hH2.16757@news.globetrotter.net>

Hi,

Is there a way to use a MS Access database in a Perl script without using
ODBC?  For example, on a Unix server?  I want to be able to query the
database using SQL.  Is this possible?

thanks in advance,

neb






------------------------------

Date: 12 Oct 2000 03:16:56 GMT
From: wjohnson@roger.ecn.purdue.edu (Wyatt R Johnson)
Subject: Re: CGI.pm & the query string
Message-Id: <8s3af8$jvb$1@mozo.cc.purdue.edu>

In article <39E49A8F.9A87EB5B@vpservices.com>,
Jeff Zucker  <jeff@vpservices.com> wrote:
>Wyatt R Johnson wrote:
>> 
>
>You don't need a hash to do that, just loop through the param() array:
>
>for my $key( $q->param() ) {
>    print "$key " . $q->param($key) . "<br>";
>}
>
>-- 
>Jeff


Ah, neat. Didn't realize you could do that.

Thanks
Wyatt


------------------------------

Date: Thu, 12 Oct 2000 01:55:29 -0400
From: paceman97@aol.com
Subject: challenging problem
Message-Id: <39E55250.7F50950D@aol.com>

There is a script that takes simple numbers (1-8000) as input and based
on that sends you to some URL.   Is there a way for me to get a list of
those URL's ?
Perhaps connect to each one of those url's and find out where its
leading?   (i tried that and it didnt work for me)

Maybe there is some way to do it through Unix ?   or another scripting
language.

Please help.




------------------------------

Date: Thu, 12 Oct 2000 04:32:57 GMT
From: "Mike Balenger" <MBalenger@att.net>
Subject: Re: Cutesy Arrows - Just say no! (was Re: Convert array to string?)
Message-Id: <Z9bF5.26254$tl2.1710595@bgtnsc07-news.ops.worldnet.att.net>


----- Original Message -----
From: Craig Berry <cberry@cinenet.net>
Newsgroups: comp.lang.perl.misc
Sent: Wednesday, October 11, 2000 6:17 PM
Subject: Re: Cutesy Arrows - Just say no! (was Re: Convert array to string?)


> James Taylor (james@NOSPAM.demon.co.uk) wrote:
> : > Cargo-cult?
> :
> : Yes, I'd like to know what that means. I'd come to the conclusion that
> : it was a cultural reference specific to America and that I'd never
> : find out exactly what nuance it had. It clearly means "bad" in some
> : sense, but more than that I haven't been able to deduce.
> :
> : Could someone in the know please explain the derivation, history, and
> : current usage of the term "cargo-cult" please.
>
> World War II brought occupying military forces to many remote islands in
> the Pacific which had had little or no previous exposure to outsiders.
> Suddenly, out of nowhere, ships and planes arrived, and with them came
> tons and tons of cargo -- tools, food, fuel, clothing -- beyond anything
> previously imagined by the islanders.  Needless to say, a little of this
> bounty ended up in the islander's hands, either as gifts or through
> scavenging when bases were abandoned during and after the war.  The
> natives had no idea what had just happened, but they knew they wanted more
> cargo.  So, on some islands, "cargo cult" religions were born.  Models of
> airplanes were made out of palm fronds, runways were cleared, "control
> towers" built, all in the hopes of coaxing the 'gods' back.
>
> Within the Perl community, 'cargo cult coding' refers to using some idiom
> or pattern without understanding why you are doing it or how it works.
> Frequently the code involved is identifiably from some suspect source, or
> replicates (with bugs) a function better performed in modern Perl by a
> module.  The sense in which the phrase is used is clear, I hope; just like
> the builders of airplane totems, cargo cult coders *think* they understand
> the technology which they want to work make for them, but very clearly do
> not actually have this understanding.
>
> --
>    |   Craig Berry - http://www.cinenet.net/~cberry/
>  --*--  "Quidquid latine dictum sit, altum viditur."
>    |


From context, I would have (incorrectly) guessed another meaning.  Glad I
asked.  I was on the verge of createing a cargo-cult usage of "cargo-cult".

:-)







------------------------------

Date: Wed, 11 Oct 2000 21:47:58 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: Cutesy Arrows - Just say nope!
Message-Id: <39E5427E.401B6890@stomp.stomp.tokyo>

Craig Berry wrote:
 
> James Taylor sang:

>  > Cargo-cult?

(snippage)

> Within the Perl community, 'cargo cult coding' refers to using 
> some idiom or pattern without understanding why you are doing 
> it or how it works. Frequently the code involved is identifiably
> from some suspect source, or replicates (with bugs) a function 
> better performed in modern Perl by a module.  


With hopes of not reading disrespectful, your description
perfectly and precisely defines use of modules, which are
clearly, modern day Perl cargo cult.



Godzilla!
--
Enjoying newly released 3X album by ZZ Top


------------------------------

Date: Thu, 12 Oct 2000 04:27:54 GMT
From: "Mike Balenger" <MBalenger@att.net>
Subject: Re: Defining an Operator (not overloading)
Message-Id: <e5bF5.26243$tl2.1710055@bgtnsc07-news.ops.worldnet.att.net>

Mark-Jason Dominus <mjd@plover.com> wrote in message
news:39e4a531.44db$2a8@news.op.net...
>
> In article <fL%E5.5592$524.341446@bgtnsc05-news.ops.worldnet.att.net>,
> Mike Balenger <MBalenger@att.net> wrote:
> >> I've been searching for how to define a new operator in Perl and have
> >> been coming up with lots of info on overloading operators which is not
> >> what I want to do.
> >
> >Do you know of another language that lets you do this?
>
> You can do this in ML, except that the proposed symbol, '=, happens to
> be illegal in ML.
>
> In ML you would say something like this:
>
>         infix 3 .== ;
>         fun s .== p   =           s := !s ^ p;
>
> (The '3' indicates the relative precedence of the new .== operator.  ^
> is the ML string concatenation operator and := is assignment.  s is a
> reference to a string; !s dereferences s.  You can't assign directly
> to a string because in ML variable names don't necessarily refer to
> storage unless they are references, so the assignment operator only
> works on a reference.)
>
> I'm working on an experimental Perl-like language that supports this
feature.
>
> The parser details are not difficult.  The only hard part is that you
> cannot use YACC.


My world just got bigger!






------------------------------

Date: 12 Oct 2000 06:53:36 GMT
From: "Josiah" <jdb@wcoil.com>
Subject: Re: Defining an Operator (not overloading)
Message-Id: <8s3n5g$b6d$0@206.230.71.80>

> I've been searching for how to define a new operator in Perl and have
> been coming up with lots of info on overloading operators which is not
> what I want to do.
>
> My interest is to simply define a new operator, imported from its own
> package via 'use', and have it be functional for scalars, it can reject
> any arguements that are refs.  What I'm after is a prefix operator that
> would be similar to .=, lets call it `= though the choice is arbitrary
> for discussion:
>
>   $string `= $prefix;
>
> performs:
>
>   $string = $prefix . $string;
>


See description of possible new 'string' pragma that implements the
op ('=) that you suggested. The desc of the string pragma is posted above
this thread at around 3am Eastern Standard time.


--
Josiah Bryan
jdb@wcoil.com

-----------------------------------------------------------------------
Pursuant to US Code, Title 47, Chapter 5, Subchapter II, ¢227,
Any and all nonsolicited commercial E-mail sent to this address
is subject to a download and archival fee in the amount of $500.00 US.
E-Mailing denotes the acceptance of these terms
-----------------------------------------------------------------------





------------------------------

Date: Thu, 12 Oct 2000 04:53:01 GMT
From: ced@bcstec.ca.boeing.com (Charles DeRykus)
Subject: Re: Filehandle to string (or HTTP::Request)?
Message-Id: <G2Aw8D.1Br@news.boeing.com>

In article <39e4d0d3$0$30013$44a10c7e@news.net-link.net>,
Jeff Boes  <jboes@eomonitor.com> wrote:
>Okay, don't everyone jump me for this...
>
>I have an existing package that is used in dozens of places in our
>production system. It retrieves web pages using socket opens and other
>evils. I'm going to rewrite the innards to use LWP.
>
>However, the visible interface to the package sets up a file handle to
>retrieve the content. I would like to preserve that interface if only so
>I don't have to strip down and rebuild another 10,000 lines of code...
>
>So my problem is: given the existing LWP code (I don't want to rewrite
>that to serve my purpose either, as maintenance could be rough), how can
>I write a layer on top of it that will define a filehandle so that
>content is retrieved by normal reads?
>
>Simpleminded approach: grab the content, open a file in /tmp, write it
>out, open a read-only filehandle to it.
>
>Complex approach: overload the '<>' operator.
>
>Other approaches: ??

You could pipe LWP output to yourself to save opening
the temporary file. Take a look at pipe examples in
perlipc.

hth,
--
Charles DeRykus 


------------------------------

Date: Thu, 12 Oct 2000 06:23:52 GMT
From: rgarciasuarez@free.fr (Rafael Garcia-Suarez)
Subject: Re: hoe to alter @INC?
Message-Id: <slrn8uamkr.k9j.rgarciasuarez@rafael.kazibao.net>

Werner, Wolfgang wrote in comp.lang.perl.misc:
>hi,
>how can i change @INC?
>i wan to have a new dir for modules
>thans

The preferred way to do this is to add at the beggining of your scripts:
  use lib '/new/dir/for/modules';

Another way is to define the PERLLIB environment variable to contain the
name of the additionnal directory. This is described in the perlrun
section of the documentation.

-- 
# Rafael Garcia-Suarez / http://rgarciasuarez.free.fr/


------------------------------

Date: Thu, 12 Oct 2000 12:16:28 +1000
From: jason <elephant@squirrelgroup.com>
Subject: Re: How to get params after use Mod?
Message-Id: <MPG.144fca0b53eb323c989815@localhost>

Per Kistler wrote ..
>How can one get the parameters (a,b,c) after a "use Module qw(a b c )"
>from within a package?

those parameters are passed to the Module::import method .. further 
reference in the documentation on the 'use' function and Exporter module

  perldoc -f use
  perldoc Exporter

and if you haven't already then you should probably also read

  perldoc perlmod

-- 
  jason -- elephant@squirrelgroup.com --


------------------------------

Date: Thu, 12 Oct 2000 03:41:34 GMT
From: mjd@plover.com (Mark-Jason Dominus)
Subject: Re: How to get params after use Mod?
Message-Id: <39e532ed.5abf$39e@news.op.net>


In article <39E4E557.A2A0D2CC@gmx.net>, Per Kistler  <kistler@gmx.net> wrote:
>How can one get the parameters (a,b,c) after a "use Module qw(a b c )"
>from within a package?

They get passed to the Module::import function, if there is one. 

You may want to take a look at the Very Very Short Tutorialabout
Modules, which is at

        http://www.plover.com/~mjd/perl/Hello/

It has a small example of a module that demonstrates the answer to
this very question.


------------------------------

Date: Thu, 12 Oct 2000 08:18:23 +0200
From: Per Kistler <kistler@gmx.net>
To: Mark-Jason Dominus <mjd@plover.com>
Subject: Re: How to get params after use Mod?
Message-Id: <39E557AF.AC5804C8@gmx.net>

Hi Mark-Jason

Thanks.

I did it now like that:

package A;

use strict;

sub new {
        my ($class) = @_;
        return bless {}, ref($class) || $class;
}

sub import {
        my ($class,@args) = @_;
        $A::args = \@args;
        print "import got: @args\n";
}

sub getArgs {
        my ($this) = @_;
        print "args are: @{ $A::args }\n";
}

"End of package A";

Per.


Mark-Jason Dominus wrote:
> 
> In article <39E4E557.A2A0D2CC@gmx.net>, Per Kistler  <kistler@gmx.net> wrote:
> >How can one get the parameters (a,b,c) after a "use Module qw(a b c )"
> >from within a package?
> 
> They get passed to the Module::import function, if there is one.
> 
> You may want to take a look at the Very Very Short Tutorialabout
> Modules, which is at
> 
>         http://www.plover.com/~mjd/perl/Hello/
> 
> It has a small example of a module that demonstrates the answer to
> this very question.


------------------------------

Date: Thu, 12 Oct 2000 12:53:19 +0800
From: Michael Salleo <michael@omon.net>
Subject: html form
Message-Id: <39E543BF.9304BF84@omon.net>

hi

how do i carry over (post) the values from a html from to a cgi script?

im using checkboxes with multiple boxes checked as well as text fields

any help greatly appreciated


Michael



------------------------------

Date: Wed, 11 Oct 2000 22:42:22 -0700
From: Jeff Zucker <jeff@vpservices.com>
Subject: Re: html form
Message-Id: <39E54F3E.8102C106@vpservices.com>

Michael Salleo wrote:
> 
> hi
> 
> how do i carry over (post) the values from a html from to a cgi script?
> 
> im using checkboxes with multiple boxes checked as well as text fields
> 
> any help greatly appreciated

You use the CGI.pm module.  The module and a very comprehensive
documentation for it comes standard with modern perls.  Here is a basic
script that simply lists the value of all fields posted (regardless of
whether they are text, checkboxes, multiple entry, or whatever:

#!/usr/local/bin/perl -Tw
$|++;
use strict;
use CGI qw(:standard);
print header, start_html;
for my $key( param() ) {
   my @values = param($key);
   my $value  = param($key);
   print "$key : ";
   $#values
       ? print join '--', @values
       : print $value;
   print br;
}
print end_html;


-- 
Jeff


------------------------------

Date: Thu, 12 Oct 2000 14:03:14 +0800
From: Michael Salleo <michael@omon.net>
Subject: Re: html form
Message-Id: <39E55422.A634D90C@omon.net>

how do i call these fields individually? to use with math functions.

Thanks

Jeff Zucker wrote:

> Michael Salleo wrote:
> >
> > hi
> >
> > how do i carry over (post) the values from a html from to a cgi script?
> >
> > im using checkboxes with multiple boxes checked as well as text fields
> >
> > any help greatly appreciated
>
> You use the CGI.pm module.  The module and a very comprehensive
> documentation for it comes standard with modern perls.  Here is a basic
> script that simply lists the value of all fields posted (regardless of
> whether they are text, checkboxes, multiple entry, or whatever:
>
> #!/usr/local/bin/perl -Tw
> $|++;
> use strict;
> use CGI qw(:standard);
> print header, start_html;
> for my $key( param() ) {
>    my @values = param($key);
>    my $value  = param($key);
>    print "$key : ";
>    $#values
>        ? print join '--', @values
>        : print $value;
>    print br;
> }
> print end_html;
>
> --
> Jeff



------------------------------

Date: Thu, 12 Oct 2000 12:49:51 +1000
From: jason <elephant@squirrelgroup.com>
Subject: Re: http_cookie not set in ms ie
Message-Id: <MPG.144fd1d91f35ff0e989818@localhost>

Troy Rasiah wrote ..
>----------------------------------------------------------------------------
>----------------
>"jason" <elephant@squirrelgroup.com> wrote in message
>news:MPG.144fb516c055abb198980f@localhost...
>> Troy Rasiah wrote ..
>> >> >i get some problems with micorsoft IE. it's not possible to read the
>> >> >cookie. The Browser set's the cokkie with correct values.then i tried
>> >> >to receive the cookie with fetch CGI::Cookie.
>> >> >http_cookie ENV is not set by using ms IE.
>> >> >
>> >> >With netscape everything work fine.
>> >> >
>> >> >use: apache 1.3.9 unix, perl 5.005_03, solaris 2.6
>> >> >
>> >> >any idea?
>> >>
>> >> if your cookies work with one browser but not with another browser -
>> >> then the problem is not a Perl problem .. perhaps find out how IE
>> >> handles cookies from Microsoft or a related newsgroup/FAQ/website/etc.
>> -
>> >I had the same problem....seems to work fine with IE up till 5.5
>> >5.0 and under work fine
>>
>> even more not a Perl problem then .. the browser has obviously changed
>> the way it handles cookies in some way that you're not expecting
>
>Jason....know a news group that handles/discusses a mixture of browser
>related problems and perl?

you have demonstrated that you know how to do everything that you need 
to do in Perl already .. the Perl side of a cookie is as simple as a 
print statement (especially when using the CGI::Cookie module)

the apparent hole in your understanding is what has changed in the 
handling of cookies between 5.0 and 5.5 of Internet Explorer .. perhaps 
it no longer accepts a particular date format .. or perhaps it has a bug 
in dealing with the PATH attribute

I really don't know .. because it's got nothing to do with Perl

honestly - this is not a demarcation dispute .. I'm trying to direct you 
to where you will find the information that you need

-- 
  jason -- elephant@squirrelgroup.com --


------------------------------

Date: Wed, 11 Oct 2000 23:36:11 -0400
From: brian@smithrenaud.com (brian d foy)
Subject: Re: http_cookie not set in ms ie
Message-Id: <brian-ya02408000R1110002336110001@news.panix.com>

In article <MPG.144fd1d91f35ff0e989818@localhost>, jason <elephant@squirrelgroup.com> posted:

> the apparent hole in your understanding is what has changed in the 
> handling of cookies between 5.0 and 5.5 of Internet Explorer .. perhaps 
> it no longer accepts a particular date format .. or perhaps it has a bug 
> in dealing with the PATH attribute

if i recall correctly, last time IE broke this, i outlined the problem
in comp.infosystems.www.authoring.cgi along with various references.

-- 
brian d foy                    
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
Perl Mongers <URL:http://www.perl.org/>


------------------------------

Date: Thu, 12 Oct 2000 12:11:17 +1000
From: jason <elephant@squirrelgroup.com>
Subject: Re: I can't get .pm files to work!!! help please!
Message-Id: <MPG.144fc8d0bc439e5f989814@localhost>

prashantsolomon@msn.com wrote ..
>I am trying to create a Guestbook using an example in my PERL book.
>
>The program calls for the creation of a .pm header file. However,
>whenever I try to run the program, it shows a download box and asks if
>I want to download the file.
>
>I have created an entry for .pm extension in the regedit program and
>also have associated the .pm extension with perl.exe.
>
>I am using WINDOWS 98 with Microsoft PWS.

you're either confused .. or that book is better used as a paper-weight 
 .. .pm files are modules which are used by .pl files .. you should never 
be executing a .pm file directly via the web server (or any other way 
for that matter)

say you've got a .pm file called MyTest.pm .. then your .pl file should 
contain a line like

  use MyTest;

and then you should be using functions from MyTest .. eg.

  MyTest::some_function();

see more information in the standard Perl documentation by using the 
perldoc utility

  perldoc perlmod

-- 
  jason -- elephant@squirrelgroup.com --


------------------------------

Date: Thu, 12 Oct 2000 03:12:33 GMT
From: esper@news.visi.com (Dave Sherohman)
Subject: Re: Invoking ssh from a script
Message-Id: <slrn8uab11.5cc.esper@pchan.dojo>

On Wed, 11 Oct 2000 23:05:12 GMT, NP <nvp@spamnothanks.speakeasy.org> wrote:
> esper@news.visi.com wrote:
> : I'm trying to put together a utility script to do a little remote maintenance
> : via ssh.  My first attempt (included below) fails.  It invokes ssh, but ssh
> : refuses to allocate a pty because stdin isn't a terminal.  My script then
> 
> Correct.  You should probably use Expect.pm instead.

Any other options?  Aside from expect's (IMO) clumsy syntax, I'm not going to
know about the remote system in the sort of detail that expect seems to...
well... expect.  (Some servers ask for passwords, some don't.  Perhaps the
host key won't be recognized, so there'll be a prompt for that before a
password is requested.  And heaven help us if we're connecting to an account
with a nonstandard shell prompt...)

While looking for information on Expect.pm, I turned up another module,
IPC::Session.pm, which functions in a fashion much more appropriate to what
I'm doing (as well as being simply more to my taste), but has the drawback
that it can't handle interactive logins.  Ideally, I would like to get to
the point of being able to add the ability to handle interactive ssh logins
to IPC::Session.

I could, at least in theory, do this by cutting and pasting from Expect
until it works.  I'd much rather understand what I'm doing.

-- 
"Two words: Windows survives." - Craig Mundie, Microsoft senior strategist
"So does syphillis. Good thing we have penicillin." - Matthew Alton
Geek Code 3.1:  GCS d- s+: a- C++ UL++$ P+>+++ L+++>++++ E- W--(++) N+ o+
!K w---$ O M- V? PS+ PE Y+ PGP t 5++ X+ R++ tv b+ DI++++ D G e* h+ r++ y+


------------------------------

Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 16 Sep 99)
Message-Id: <null>


Administrivia:

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V9 Issue 4591
**************************************


home help back first fref pref prev next nref lref last post