[13780] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 1190 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Oct 27 22:37:36 1999

Date: Wed, 27 Oct 1999 19:37:23 -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: <941078243-v9-i1190@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Wed, 27 Oct 1999     Volume: 9 Number: 1190

Today's topics:
        Path Problems <oneillNOonSPAM@cs.uregina.ca.invalid>
    Re: Path Problems <flavell@mail.cern.ch>
    Re: Path Problems <gellyfish@gellyfish.com>
    Re: pattern matching question <zhon@axent.com>
        Perl / windows interface ? <amoore@nildram.co.uk>
    Re: Perl / windows interface ? <gellyfish@gellyfish.com>
    Re: Perl / windows interface ? <kbandes@home.com>
    Re: Perl / windows interface ? (Clinton Pierce)
    Re: Perl / windows interface ? <rootbeer@redcat.com>
        Perl 5.003 and modules written in 5.004 (William Burrow)
    Re: Perl 5.003 and modules written in 5.004 <cassell@mail.cor.epa.gov>
    Re: Perl 5.003 and modules written in 5.004 (William Burrow)
    Re: Perl 5.003 and modules written in 5.004 (Abigail)
    Re: Perl 5.003 and modules written in 5.004 (Martien Verbruggen)
    Re: Perl 5.003 and modules written in 5.004 <rootbeer@redcat.com>
    Re: Perl 5.003 and modules written in 5.004 <@mdo.net>
    Re: Perl and cookies <rootbeer@redcat.com>
    Re: Perl and shadow passwords <rootbeer@redcat.com>
    Re: perl browser (William Burrow)
    Re: perl browser (Dave Price)
    Re: perl browser <sr@pc-plus.de>
    Re: perl browser cnsxxx09@my-deja.com
    Re: Perl command line? <dchristensen@california.com>
    Re: Perl command line? <martin@mert.globalnet.co.uk>
    Re: Perl command line? <Rick.Brewer@USA.Alcatel.com>
    Re: perl compile question - Solaris (Peter L. Berghold)
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: Wed, 27 Oct 1999 12:10:03 -0700
From: oneill78 <oneillNOonSPAM@cs.uregina.ca.invalid>
Subject: Path Problems
Message-Id: <0b90d704.e4e45ed8@usw-ex0110-073.remarq.com>

Test


* Sent from AltaVista http://www.altavista.com Where you can also find releated Web Pages, Images, Audios, Videos, News, and Shopping.  Smart is Beautiful


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

Date: Wed, 27 Oct 1999 21:51:01 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: Path Problems
Message-Id: <Pine.HPP.3.95a.991027215018.28028C-100000@hpplus01.cern.ch>

On Wed, 27 Oct 1999, oneill78 wrote:

> Test

Yup, the test proved that you haven't done your homework by
reading news.announce.newusers before posting.



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

Date: 27 Oct 1999 20:59:29 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Path Problems
Message-Id: <7v7p3h$jqm$1@gellyfish.btinternet.com>

On Wed, 27 Oct 1999 12:10:03 -0700 oneill78 wrote:
> Test

alt.test
misc.test

OK 

/J\
-- 
Jonathan Stowe <jns@gellyfish.com>
<http://www.gellyfish.com>
Hastings: <URL:http://dmoz.org/Regional/UK/England/East_Sussex/Hastings>


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

Date: Tue, 26 Oct 1999 02:22:06 GMT
From: Zhon Johansen <zhon@axent.com>
Subject: Re: pattern matching question
Message-Id: <38150371.3F790352@axent.com>

try

perl -e 'print $_ unless /^Pjam\W/' users > users.tmp

cheers,

zhon

James Nessen wrote:

> Hello,
>   Got a quick and hopefully easy question for everyone.  I am trying to do
> *exact* pattern matching to remove a user from a file.  Well, the script
> that I wrote did that and more.  I removed a user "jam" and the script
> went through and removed everyone with "jam" in front, ie "james", "jamie"
> How can I modify my script to only remove the user "jam" and nothing else?
>
> Here is an example of my source...
>
>  open(IN, "/etc/raddb/users") || die "Can't open users: $!\n";
>  open(OUT, ">/etc/raddb/users.tmp") || die "Can't open temp: $!\n";
>         while(<IN>) {
>         $userfound = 1;
>         $in = $_;
>         if ($in =~ /^P$u/){$userfound=0}
>         if ($userfound) {print OUT}
>         }
>         close(IN);
>         close(OUT);
> TIA!
>
> Jim
> --
> James Nessen
> E. nessenj@jimsoffice.org
> P. 916.296.5454
> F. 916.313.3481
> W. http://www.jimsoffice.org



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

Date: Tue, 26 Oct 1999 22:32:55 +0100
From: "Edward Moore" <amoore@nildram.co.uk>
Subject: Perl / windows interface ?
Message-Id: <7v56mk$gj0$1@supernews.com>

I saw a colleague using perl to invoke windows, with check boxes etc, great
! Now how do I do that ?

What package / methods can do this, is it in standard release api521 (?) or
do I need something of Cpan ?

I'm a bit new to this so go easy.

-Ed





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

Date: 27 Oct 1999 11:18:47 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Perl / windows interface ?
Message-Id: <3816d187_1@newsread3.dircon.co.uk>

Edward Moore <amoore@nildram.co.uk> wrote:
> I saw a colleague using perl to invoke windows, with check boxes etc, great
> ! Now how do I do that ?
> 
> What package / methods can do this, is it in standard release api521 (?) or
> do I need something of Cpan ?
> 

The module Win32::GUI will do this (as well as Tk) - you can get it via PPM.

/J\
-- 
"The internet is like a car boot sale" - Jon Sopel, BBC News


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

Date: Wed, 27 Oct 1999 01:12:19 GMT
From: Kenneth Bandes <kbandes@home.com>
Subject: Re: Perl / windows interface ?
Message-Id: <381651E7.FFCCACBB@home.com>

Tom Phoenix wrote:
> On Tue, 26 Oct 1999, Edward Moore wrote:
> > I saw a colleague using perl to invoke windows, with check boxes etc,
> > great ! Now how do I do that ?
> 
> Sounds like Tk to me. See the manpages for Tk, which should come with the
> ActiveState port of Perl for Windows these days, if I'm not mistaken.

I'm not sure it's standard but you can certainly get it with ppm (do
install Tk at the ppm prompt).

There's a book, "Learning Perl/Tk" by Nancy Walsh, which will get
you started nicely.  Among other things, she's very good on the 
often-neglected question of platform differences, which will matter
quite a bit (especially with fonts).

On the other hand, they might have been using Win32::GUI.  I don't
know much about this module, except that it was written by Aldo
Calpini and is available at his web site, 
http://www.divinf.it/dada/perl/ (as well as other places, but not
CPAN - it's still beta).

I have no idea what might be the advantage of this module, and
of course it isn't portable (which Tk is).  But it's an option.  You 
might look for the Perl-Win32-Users mailing list at 
www.activestate.com to see if people are discussing it.

Unless you're already very familiar with Windows programming,
Tk seems preferable.

Ken Bandes


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

Date: Tue, 26 Oct 1999 23:45:02 GMT
From: clintp@geeksalad.org (Clinton Pierce)
Subject: Re: Perl / windows interface ?
Message-Id: <38193b44.348551299@news.roalok1.mi.home.com>

On Tue, 26 Oct 1999 22:32:55 +0100, "Edward Moore"
<amoore@nildram.co.uk> wrote:
>I saw a colleague using perl to invoke windows, with check boxes etc, great
>! Now how do I do that ?

Perl/Tk works quite nicely for this.  I also believe there are
Win32-specific API/Widget sets.

>What package / methods can do this, is it in standard release api521 (?) or
>do I need something of Cpan ?
>
>I'm a bit new to this so go easy.

Then I'll answer your next few questions, and save you the trip 'cause
I know you'll be back otherwise:

 * You can get Perl/Tk from Activestate. www.activestate.com
 * Use PPM to install it.  FAQ for how is on their web stite.
 * The HTML-documentation that Activestate distributes with Perl/Tk
   has /nasty/ formatting bugs.  Use "perldoc" to read the relevant
   portions if you have to.
 * Questions about Perl/Tk are best directed to comp.lang.perl.tk and
   not to comp.lang.perl.misc
 * There IS a book on how to program this stuff: Learning Perl/Tk
   from O'Reilly (www.ora.com)
 * The Perl/Tk distribution comes with a demo and sample code.  Run
   the "widget.bat" batch file after you get Tk installed.

[Followups adjusted to comp.lang.perl.tk]

Next!

-- 
"If you rush a Miracle Man, you get rotten miracles"
                     --Miracle Max, The Princess Bride
http://www.geeksalad.org


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

Date: Tue, 26 Oct 1999 15:27:14 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Perl / windows interface ?
Message-Id: <Pine.GSO.4.10.9910261525160.29843-100000@user2.teleport.com>

On Tue, 26 Oct 1999, Edward Moore wrote:

> I saw a colleague using perl to invoke windows, with check boxes etc,
> great ! Now how do I do that ?

Sounds like Tk to me. See the manpages for Tk, which should come with the
ActiveState port of Perl for Windows these days, if I'm not mistaken.

Also, it wouldn't be too bad to read through comp.lang.perl.tk for the
next few months to see what's being said about it. Or to see your favorite
Usenet archive for that group to see what's already been said about it.

Cheers!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: 25 Oct 1999 17:34:35 GMT
From: aa126@DELETE.fan.nb.ca (William Burrow)
Subject: Perl 5.003 and modules written in 5.004
Message-Id: <slrn81955b.gu9.aa126@fan1.fan.nb.ca>

I am having some difficulty, due to the fact that I am using Perl 5.004
and just recently discovered my ISP is still using 5.003.  On trying to
use a module I wrote, I get the following error:

% perl -w
use diagnostics;
use my_module;
Can't call method "import" in empty package "my_module" at - line 2 (#1)
    (F) You called a method correctly, and it correctly indicated a
package
    functioning as a class, but that package doesn't have ANYTHING
defined
    in it, let alone methods.  See perlobj.

Uncaught exception from user code:
        Can't call method "import" in empty package "my_module" at -
line 2.
        main::BEGIN called at my_module.pm line 0
        eval {...} called at my_module.pm line 0
BEGIN failed--compilation aborted at - line 2.           


The perlobj page talks about perl thingies, not modules.  Were user
modules supported in 5.003 and what differences might there be between
them and those in 5.004?

--
William Burrow  --  New Brunswick, Canada             o
Copyright 1999 William Burrow                     ~  /\
                                                ~  ()>()


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

Date: Tue, 26 Oct 1999 16:30:56 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: Perl 5.003 and modules written in 5.004
Message-Id: <381639B0.4AE34DE7@mail.cor.epa.gov>

William Burrow wrote:
> 
> On Tue, 26 Oct 1999 00:43:46 GMT,
> Martien Verbruggen <mgjv@comdyn.com.au> wrote:
> >On 25 Oct 1999 17:34:35 GMT,
> >Your ISP obviously doesn't care about security on their systems. You
[snip]
> >could make them aware of the fact that CERT has a few bulletins
> >outlining the problems with older versions of Perl. If that doesn't
> 
> I've advised them to upgrade, I'll wait and see what their response is.
> 
> >convince them, you could demonstrate the problem to them. If that
> 
> I don't believe that this approach is necessarily the best.

Good call.  Randal doesn't recommend that approach any more 
either.

David
-- 
David Cassell, OAO                     cassell@mail.cor.epa.gov
Senior computing specialist
mathematical statistician


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

Date: 26 Oct 1999 02:16:11 GMT
From: aa126@NO-SPAM.fan.nb.ca (William Burrow)
Subject: Re: Perl 5.003 and modules written in 5.004
Message-Id: <slrn81a3o8.mhi.aa126@molokai.surfcity.nb.ca>

On Tue, 26 Oct 1999 00:43:46 GMT,
Martien Verbruggen <mgjv@comdyn.com.au> wrote:
>On 25 Oct 1999 17:34:35 GMT,
>Your ISP obviously doesn't care about security on their systems. You

Can you list the ones that do? ;)  As a CGI coder, I run into so many that
are so disappointing (being greeted by wuftp (Academic) at this stage in
the game is ridiculuous).

>could make them aware of the fact that CERT has a few bulletins
>outlining the problems with older versions of Perl. If that doesn't

I've advised them to upgrade, I'll wait and see what their response is.

>convince them, you could demonstrate the problem to them. If that

I don't believe that this approach is necessarily the best.  

>doesn't convince them, you should probably switch providers.

Being my own provider is what I really want, but the funds for this
aren't there. :)

>problem though. Hard to tell. Is it a correctly formatted text file?
>Did you maybe develop it on DOS or one of it's derivative menu
>systems, and copy it to your ISP without end-of-line conversions? I'm

Good point.  Not that I use DOS or related products except when forced
to at knife point, but a little error might show up in the transfer.
However, md5 sums match, so that doesn't seem to be the problem.


-- 
William Burrow -- New Brunswick, Canada
    "People don't ask for facts in making up their minds.
    They would rather have one good, soul-satisfying
    emotion than a dozen facts." -- Robert Keith Leavitt


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

Date: 25 Oct 1999 22:20:05 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Perl 5.003 and modules written in 5.004
Message-Id: <slrn81a7eb.fji.abigail@alexandra.delanet.com>

William Burrow (aa126@DELETE.fan.nb.ca) wrote on MMCCXLVI September
MCMXCIII in <URL:news:slrn81955b.gu9.aa126@fan1.fan.nb.ca>:
"" I am having some difficulty, due to the fact that I am using Perl 5.004
"" and just recently discovered my ISP is still using 5.003.  On trying to
"" use a module I wrote, I get the following error:
"" 
"" The perlobj page talks about perl thingies, not modules.  Were user
"" modules supported in 5.003 and what differences might there be between
"" them and those in 5.004?


Yes they were. (There has never been a difference between "user modules"
and "non-user modules"; save from pragmas). Differences can be found in
the man pages; there's a manpage dedicated to differences.

But what keeps you from compiling perl yourself?



Abigail
-- 
perl -wle\$_=\<\<EOT\;y/\\n/\ /\;print\; -eJust -eanother -ePerl -eHacker -eEOT


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


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

Date: Tue, 26 Oct 1999 00:43:46 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Perl 5.003 and modules written in 5.004
Message-Id: <6P6R3.361$8F2.4260@nsw.nnrp.telstra.net>

On 25 Oct 1999 17:34:35 GMT,
	William Burrow <aa126@DELETE.fan.nb.ca> wrote:
> I am having some difficulty, due to the fact that I am using Perl 5.004
> and just recently discovered my ISP is still using 5.003.  On trying to

Your ISP obviously doesn't care about security on their systems. You
could make them aware of the fact that CERT has a few bulletins
outlining the problems with older versions of Perl. If that doesn't
convince them, you could demonstrate the problem to them. If that
doesn't convince them, you should probably switch providers.

> use a module I wrote, I get the following error:
> 
> % perl -w
> use diagnostics;
> use my_module;
> Can't call method "import" in empty package "my_module" at - line 2 (#1)
>     (F) You called a method correctly, and it correctly indicated a
> package
>     functioning as a class, but that package doesn't have ANYTHING
> defined
>     in it, let alone methods.  See perlobj.
> 
> Uncaught exception from user code:
>         Can't call method "import" in empty package "my_module" at -
> line 2.
>         main::BEGIN called at my_module.pm line 0
>         eval {...} called at my_module.pm line 0
> BEGIN failed--compilation aborted at - line 2.           
> 
> The perlobj page talks about perl thingies, not modules.  Were user
> modules supported in 5.003 and what differences might there be between
> them and those in 5.004?

I don't have a 5.003 around anymore, and I doubt many people do. 5.003
had modules. It looks a bit like the module you wrote might be the
problem though. Hard to tell. Is it a correctly formatted text file?
Did you maybe develop it on DOS or one of it's derivative menu
systems, and copy it to your ISP without end-of-line conversions? I'm
not even sure that that would display these problems, but they might.

Martien
-- 
Martien Verbruggen              | 
Interactive Media Division      | For heaven's sake, don't TRY to be
Commercial Dynamics Pty. Ltd.   | cynical. It's perfectly easy to be
NSW, Australia                  | cynical.


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

Date: Mon, 25 Oct 1999 14:05:48 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Perl 5.003 and modules written in 5.004
Message-Id: <Pine.GSO.4.10.9910251354310.29843-100000@user2.teleport.com>

On 25 Oct 1999, William Burrow wrote:

> I am having some difficulty, due to the fact that I am using Perl
> 5.004 and just recently discovered my ISP is still using 5.003.

The ISP should probably install something newer.

> The perlobj page talks about perl thingies, not modules.  Were user
> modules supported in 5.003 and what differences might there be between
> them and those in 5.004?

User modules were supported. But 5.003 had a number of bugs which have
since been fixed. Still, if you want to make your module work with 5.003,
it should probably be possible - although convincing your ISP to install
5.004 (or 5.005) might be less work. 

Good luck!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: Mon, 25 Oct 1999 18:58:58 -0400
From: "CS" <@mdo.net>
Subject: Re: Perl 5.003 and modules written in 5.004
Message-Id: <4e5R3.38091$E_1.2158010@typ11.nn.bcandid.com>

I had the same problem, and all I did was get a better service provider.
That's the easiest solution :-)




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

Date: Mon, 25 Oct 1999 13:17:53 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Perl and cookies
Message-Id: <Pine.GSO.4.10.9910251317290.29843-100000@user2.teleport.com>

On Sun, 24 Oct 1999, Nelson Nieves wrote:

> The problem is that the code executes but doesn't read the cookie.

If you're following the proper protocol but some browser or server doesn't
cooperate, then it's the other program's fault. If you're not following
the protocol, then it's your fault. If you aren't sure about the protocol,
you should read the protocol specification. If you've read it and you're
still not sure, you should ask in a newsgroup about the protocol.

Hope this helps!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: Mon, 25 Oct 1999 12:42:09 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Perl and shadow passwords
Message-Id: <Pine.GSO.4.10.9910251239140.29843-100000@user2.teleport.com>

On Sat, 23 Oct 1999 nate237@my-deja.com wrote:

> I've experimented with Digest::MD5 but I'm not getting what I expect.

You should probably change your expectations. :-)

> #!/usr/local/bin/perl -w
> 
> use Digest::MD5  qw(md5 md5_hex md5_base64);
> 
> print crypt("password","pa");
> print "\n";
> print md5_base64("password");
> print "\n";
> -------------------------------
> 
> Neither of the outputs match the entry in the shadow file, and the
> entries in the shadow files for Solaris and Linux differ quite a bit.

Perhaps they use different salts? Perhaps they use different algorithms?

> Either I'm using MD5 correctly for this application, or I'm not using
> the same crypt method as the OS's.  Any ideas?  What's the best way to
> determine what crypt method the OS's are using?

See the docs, read the source, check with experts on the OS. There are
lots of possibilities. But none of them is "ask in a newsgroup about
Perl", since - even if we knew all about how those shadow password files
work - we know it's off-topic here.

Good luck with it!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: 26 Oct 1999 18:27:51 GMT
From: aa126@NO-SPAM.fan.nb.ca (William Burrow)
Subject: Re: perl browser
Message-Id: <slrn81bsmk.ulm.aa126@molokai.surfcity.nb.ca>

On Tue, 26 Oct 1999 07:11:35 GMT,
cnsxxx09@my-deja.com <cnsxxx09@my-deja.com> wrote:
>Judging by the overwhelming replies....I figure this isn't possible...
>So, whilst at work I am stuck with a WYSE text terminal (no browser),
>and no way to check the info I want....
>
>Are there any other options????

As other people have mentioned, Lynx.  

Apparently, this particular site uses host based redirection.  If you
use the Host: header item, you get the desired response (eg.:

GET /q?m=l&s=ibm&d=v1 HTTP/1.0
Host: uk.finance.yahoo.com

)

Perhaps a simple modification of the Perl browser (never heard of it
before) to tack the Host: header item into it's response will get you
places.



-- 
William Burrow -- New Brunswick, Canada
    "People don't ask for facts in making up their minds.
    They would rather have one good, soul-satisfying
    emotion than a dozen facts." -- Robert Keith Leavitt


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

Date: Tue, 26 Oct 1999 08:47:43 GMT
From: davep@support-one.com (Dave Price)
Subject: Re: perl browser
Message-Id: <38156a62.5179688@news.uswest.net>

lynx! - included in most linux distros ... I can give you a login if
you do not have access to a linux box.

aloha,
dave

On Tue, 26 Oct 1999 07:11:35 GMT, cnsxxx09@my-deja.com wrote:

>Judging by the overwhelming replies....I figure this isn't possible...
>So, whilst at work I am stuck with a WYSE text terminal (no browser),
>and no way to check the info I want....
>
>Are there any other options????
>
>C.
>--
>
>> If have used the code in the Perl Cookbook to write a simple Perl
>> text browser...and most of the time it works quite well...whether
>static
>> or cgi generated pages.
>> Instead of firing up a browser (especially at work....:-)....), I can
>> customise the script to get the info I want.
>>
>> But on one site it fails:
>> http://uk.finance.yahoo.com/q?m=l&s=ibm&d=v1
>>
>> Somehow, unless the site is viewed with a browser, it returns a
>standard
>> server error message that the URL '/q' cannot be found.
>>
>> Somehow the server must distinguish between a browser and a
>non-browser?
>> Is there any way of supplying more information and getting what I
>want?
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.



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

Date: Tue, 26 Oct 1999 10:37:55 +0200
From: Stephen Riehm <sr@pc-plus.de>
Subject: Re: perl browser
Message-Id: <MPG.127f86ca1fc541a6989685@news>

cnsxxx09@my-deja.com said...

> > But on one site it fails:
> > http://uk.finance.yahoo.com/q?m=l&s=ibm&d=v1

> Are there any other options????

Have you tried Lynx - it's a simple text based browser which is very 
quick and perfectly suited to surfing without pictures etc. I tried it 
with your "broken link" above and it worked fine. See 
http://lynx.browser.org/ for more info.

Steve


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

Date: Tue, 26 Oct 1999 07:11:35 GMT
From: cnsxxx09@my-deja.com
Subject: Re: perl browser
Message-Id: <7v3k76$gep$1@nnrp1.deja.com>

Judging by the overwhelming replies....I figure this isn't possible...
So, whilst at work I am stuck with a WYSE text terminal (no browser),
and no way to check the info I want....

Are there any other options????

C.
--

> If have used the code in the Perl Cookbook to write a simple Perl
> text browser...and most of the time it works quite well...whether
static
> or cgi generated pages.
> Instead of firing up a browser (especially at work....:-)....), I can
> customise the script to get the info I want.
>
> But on one site it fails:
> http://uk.finance.yahoo.com/q?m=l&s=ibm&d=v1
>
> Somehow, unless the site is viewed with a browser, it returns a
standard
> server error message that the URL '/q' cannot be found.
>
> Somehow the server must distinguish between a browser and a
non-browser?
> Is there any way of supplying more information and getting what I
want?


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


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

Date: Tue, 26 Oct 1999 12:27:01 -0700
From: "David Christensen" <dchristensen@california.com>
Subject: Re: Perl command line?
Message-Id: <3815fcfb$1_3@news5.newsfeeds.com>

Richard <rmnesu@ptd.net>:


>> I have downloading the latest version of active state perl. When the
>> dos prompt pops up after I click on perl.exe none of my command lines
>> will work.

Make sure perl.exe is on your path.  My c:\autoexec.bat includes:

    set PATH=c:\perl\bin;"%PATH%"


I can then run a Perl script in a DOS box:

    C:\david\code\perl\hello>type hello.pl
    #! perl -w
    use strict;
    print "Hello, world!\n";

    C:\david\code\perl\hello>perl hello.pl
    Hello, world!

--
David Christensen
dchristensen@california.com







  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


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

Date: Tue, 26 Oct 1999 17:55:44 +0100
From: "Martin Elliott" <martin@mert.globalnet.co.uk>
Subject: Re: Perl command line?
Message-Id: <7v4n1l$cic$1@gxsn.com>

'cd c:/temp' first, then 'perl hello.pl'

Richard Neidermyer <rmnesu@ptd.net> wrote in message
news:380DEAFF.BC7388BE@ptd.net...
> I have downloading the latest version of active state perl. When the dos
> prompt pops up after I click on perl.exe none of my command lines will
> work. For example, to run a hello world program I type:
>
> C:\>perl c:\temp\hello.pl
>
> assuming hello.pl is in the temp directory. W
>
> What is going on with this. I get errors like wrong syntax near C:\ or
> invalid operand near \hello.pl. I have no idea as to what to do. If
> anyone can help, I would greatly appreciate it!
>
> Richard
>




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

Date: Tue, 26 Oct 1999 12:12:38 -0500
From: Rick Brewer <Rick.Brewer@USA.Alcatel.com>
Subject: Re: Perl command line?
Message-Id: <3815E106.877D12CE@USA.Alcatel.com>

You may need to delimit your backslashes with the Perl script itself.
ex.: c:\temp\myfile.txt should be
     c:\\temp\\myfile.txt .

Rick



Martin Elliott wrote:
> 
> 'cd c:/temp' first, then 'perl hello.pl'
> 
> Richard Neidermyer <rmnesu@ptd.net> wrote in message
> news:380DEAFF.BC7388BE@ptd.net...
> > I have downloading the latest version of active state perl. When the dos
> > prompt pops up after I click on perl.exe none of my command lines will
> > work. For example, to run a hello world program I type:
> >
> > C:\>perl c:\temp\hello.pl
> >
> > assuming hello.pl is in the temp directory. W
> >
> > What is going on with this. I get errors like wrong syntax near C:\ or
> > invalid operand near \hello.pl. I have no idea as to what to do. If
> > anyone can help, I would greatly appreciate it!
> >
> > Richard
> >


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

Date: Tue, 26 Oct 1999 12:56:56 GMT
From: peter@uboat.berghold.net (Peter L. Berghold)
Subject: Re: perl compile question - Solaris
Message-Id: <syhR3.15758$2T2.95134@news.rdc1.nj.home.com>

James Peregrino (james_peregrino@harvard.edu) wrote:
: Reminds me of the time I tried to write a script called "test" and could never
: get it to run because my shell thought I meant the builtin command 'test'.

Ohmigosh... I feel better now...  I'm not the only one who has done that! 


--
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Peter L. Berghold                        Peter@Berghold.Net
"Linux renders ships                     http://www.berghold.net
 NT renders ships useless...."           ICQ# 11455958


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

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 1190
**************************************


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