[25754] in Perl-Users-Digest
Perl-Users Digest, Issue: 7994 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Apr 20 00:05:41 2005
Date: Tue, 19 Apr 2005 21:05:08 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Tue, 19 Apr 2005 Volume: 10 Number: 7994
Today's topics:
[JAMLANG] - Comparative Evaluation - Draft Version <ilias@lazaridis.com>
Re: Do You Want To Know For Sure That You Are Going To <killgod@killgod.com>
Re: Do You Want To Know For Sure That You Are Going To <jim553@hotmail.com>
Re: hotmail password request tool (intranet usage) <address.good.until.2005.may.16@justmail.de>
Re: hotmail password request tool (intranet usage) <void@nowhere.lan>
Re: ISO Perl reported bugs database <pilkowsk@informatik.uni-marburg.de>
Re: ISO Perl reported bugs database <darkon.tda@gmail.com>
Re: ISO Perl reported bugs database <tadmc@augustmail.com>
Re: ISO Perl reported bugs database <spamtrap@dot-app.org>
Re: Perl + Dreamweaver? <pilkowsk@informatik.uni-marburg.de>
Re: Perl + Dreamweaver? <horner.john@gmail.com>
Re: Perl XML parsing <citius21j@yahoo.com>
Re: Perl XML parsing <tadmc@augustmail.com>
Re: Sorting a large XML file xhoster@gmail.com
Re: Sorting a large XML file <postmaster@castleamber.com>
Re: Sorting a large XML file <rishid@gmail.com>
Re: Sorting a large XML file <spamtrap@dot-app.org>
Re: Sorting a large XML file <postmaster@castleamber.com>
Re: Telnet from windows to an arm32 processor <assegai@planet.nl>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 20 Apr 2005 05:39:37 +0300
From: Ilias Lazaridis <ilias@lazaridis.com>
Subject: [JAMLANG] - Comparative Evaluation - Draft Version
Message-Id: <d44fda$s4f$11@usenet.otenet.gr>
I am comparing several languages based on a fixed template.
you can conveniently fill a form with the code / information:
http://lazaridis.com/case/lang/index.html
if you are unclear about the template, you can use the ruby evaluation
as a reference:
http://lazaridis.com/case/lang/ruby/
[note: the ruby language hits on some limitations, thus the code is
incomplete]
.
--
http://lazaridis.com
------------------------------
Date: Tue, 19 Apr 2005 22:19:34 GMT
From: "SheBlewHimDidYouBlowHim" <killgod@killgod.com>
Subject: Re: Do You Want To Know For Sure That You Are Going To Heaven? The reason some people don't know for sure if they are going to Heaven when they die is because they just don't know. The good news is that you can know for sure that you are going to Heaven wh
Message-Id: <Wtf9e.10210$go4.4023@newsread2.news.atl.earthlink.net>
so, let's see, another place that god fucked up, oh yea, let's all go spend
all fucking eternity with god the MASS MURDERER.
The only good god is a DEAD god. DEATH TO GOD
<RonGrossi382701@yahoo.com> wrote in message
news:1113941507.295783.240150@f14g2000cwb.googlegroups.com...
>
> The reason some people don't know for sure
> if they are going to Heaven when they die
> is because they just don't know.
>
> The good news is that you can know for
> sure that you are going to Heaven which is
> described in the Holy Bible as a beautiful
> place with no death, sorrow, sickness or
> pain.
>
> God tells us in the Holy Bible how simple
> it is to be saved so that we can live
> forever with Him in Heaven.
>
> "For if you confess with your mouth Jesus
> is Lord and believe in your heart that God
> raised Him from the dead, you
> WILL BE SAVED." (Romans 10:9)
>
> Over 2000 years ago God came from Heaven
> to earth in the person of Jesus Christ to
> shed His blood and die on a cross to pay
> our sin debt in full.
>
> Jesus Christ was born in Israel
> supernaturally to a virgin Jewish woman
> named Mary and lived a sinless life for
> thirty-three years.
>
> At the age of thirty-three Jesus was
> scourged and had a crown of thorns pressed
> onto His head then Jesus was crucified.
>
> Three days after Jesus died on a cross and
> was placed in a grave Jesus rose from the
> dead as Jesus said would happen before
> Jesus died.
>
> If someone tells you that they are going
> to die and in three days come back to life
> again and it happens then this person must
> be the real deal.
>
> Jesus Christ is the only person that ever
> lived a perfect sinless life.
>
> This is why Jesus is able to cover our
> sins(misdeeds) with His own blood because
> Jesus is sinless.
>
> The Holy Bible says, "In Him(Jesus) we
> have redemption through His blood, the
> forgiveness of sins..." (Ephesians 1:7)
>
> If you would like God to forgive you of
> your past, present and future sins just
> ask Jesus Christ to be your Lord and
> Saviour.
>
> It doesn't matter how old you are or how
> many bad things that you have done in
> your life including lying and stealing
> all the way up to murder.
>
> Just pray the prayer below with your
> mouth and mean it from your heart and
> God will hear you and save you.
>
> Dear Jesus Christ, I want to be saved so
> that I can have a home in Heaven with You
> when I die. I agree with You that I am a
> sinner. I believe that You love me and want
> to save me. I believe that You bled and
> died on the cross to pay the penalty for my
> sins and that You rose from the dead.
> Please forgive my sins and come into my
> heart and be my Lord and Saviour. Thanks
> Lord Jesus Christ for forgiving me and
> saving me through Your merciful grace.
> Amen.
>
> Welcome to the family of God if you just
> allowed God to save you. Now you are a real
> Christian and you can know for sure that
> you will live in Heaven forever when this
> life comes to an end.
>
> As a child of God we are to avoid
> sin(wrongdoing), but if you do sin the
> Holy Bible says, "My dear children, I
> write this to you so that you will not sin.
> But if anybody does sin, we have one who
> speaks to the Father in our defense Jesus
> Christ, the Righteous One."
>
> Those of you that have not yet decided to
> place your trust in the Lord Jesus Christ
> may never get another chance to do so
> because you do not know when you will die.
>
> Jesus said "I am the way, the truth and
> the life: no one can come to the
> Father(God)(in Heaven), but by me."
> (John 14:6)
>
> This means that if you die without
> trusting in Jesus Christ as your Lord and
> Saviour you will be forever separated from
> the love of God in a place called Hell.
>
> The Holy Bible descibes Hell as a place of
> eternal torment, suffering, pain and agony
> for all those who have rejected Jesus Christ.
>
> The good news is that you can avoid Hell by
> allowing Jesus Christ to save you today.
> Only then will you have true peace in your
> life knowing that no matter what happens you
> are on your way to Heaven.
>
>
> Praise the Lord!
> Servant of the Lord Jesus Christ
> Ronald L. Grossi
>
> *Show this to your family and friends so
> they can know that they have a choice
> where they will spend eternity. Thanks!
>
> ____________________________________________________
>
>
>
> Got Questions?
> http://www.gotquestions.org/archive.html
>
> Other Languages
> http://www.godssimpleplan.org/gsps.html
>
> Free Movie: To Hell and Back
> http://www.tbn.org/index.php/8/1.html
>
> Animation
> http://www.browser.to/jesus-animation
>
> The Passion Of The Christ
> http://www.thepassionofthechrist.com
>
> Beware Of Cults
> http://www.carm.org/cults/cultlist.htm
>
> About Hell
> http://www.equip.org/free/DH198.htm
>
> Is Jesus God?
> http://www.powertochange.com/questions/qna2.html
>
> Free Online Bible
> http://www.biblegateway.com
>
>
> ____________________________________________________
>
------------------------------
Date: Tue, 19 Apr 2005 23:08:27 -0700
From: Yik Yak <jim553@hotmail.com>
Subject: Re: Do You Want To Know For Sure That You Are Going To Heaven? The reason some people don't know for sure if they are going to Heaven when they die is because they just don't know. The good news is that you can know for sure that you are going to Heaven which is described in the Holy Bible as a beautiful place with no death, sorrow, sickness or pain. (newsgroup-post 142)
Message-Id: <icsb615j3gt3e91mvsmeoff2234ko25jm2@4ax.com>
On 19 Apr 2005 13:11:47 -0700, RonGrossi382701@yahoo.com wrote:
>
>The reason some people don't know for sure
>if they are going to Heaven when they die
>is because they just don't know.
>
Nobody knows nothing.
Well except maybe the Pope.
He might know something.
------------------------------
Date: Wed, 20 Apr 2005 05:36:00 +0200
From: =?windows-1252?Q?Andr=E9_Thieme?= <address.good.until.2005.may.16@justmail.de>
Subject: Re: hotmail password request tool (intranet usage)
Message-Id: <d44ibf$ono$1@ulric.tng.de>
Leythos schrieb:
> On Tue, 19 Apr 2005 09:21:13 -0700, mmcconnell17704 wrote:
>
>>>>How serious is the problem? All .zip files are deleted by our mail
>>>>server.
>>
>>>WHAT?
>>
>>This is happening to several of my friends, especially in academia.
>
>
> It's very common, and a good method, to delete Zip files that are
> passworded or can't be opened and the contents scanned for malicious code
> by the email av or firewall software. We always delete unscannable zip
> file.
Why not put a passworded zip into a scannable zip?
Andrι
--
------------------------------
Date: Wed, 20 Apr 2005 03:56:03 GMT
From: Leythos <void@nowhere.lan>
Subject: Re: hotmail password request tool (intranet usage)
Message-Id: <npk9e.7507$0d6.1828@tornado.ohiordc.rr.com>
On Wed, 20 Apr 2005 05:36:00 +0200, Andrι Thieme wrote:
>
> Leythos schrieb:
>> On Tue, 19 Apr 2005 09:21:13 -0700, mmcconnell17704 wrote:
>>
>>>>>How serious is the problem? All .zip files are deleted by our mail
>>>>>server.
>>>
>>>>WHAT?
>>>
>>>This is happening to several of my friends, especially in academia.
>>
>>
>> It's very common, and a good method, to delete Zip files that are
>> passworded or can't be opened and the contents scanned for malicious
>> code by the email av or firewall software. We always delete unscannable
>> zip file.
>
> Why not put a passworded zip into a scannable zip?
Why would you assume that anyone would make a AV software that can't scan
inside Zip's? Our virus detection software will scan 15 levels deep in a
Zip file (and we can set it for more).
--
spam999free@rrohio.com
remove 999 in order to email me
------------------------------
Date: Wed, 20 Apr 2005 01:55:42 +0200
From: Fabian Pilkowski <pilkowsk@informatik.uni-marburg.de>
Subject: Re: ISO Perl reported bugs database
Message-Id: <3clk3rF6o8kknU1@individual.net>
* David K. Wall schrieb:
> bill <please_post@nomail.edu> wrote:
>
>> Is there a database of reported Perl bugs?
>
> I didn't know offhand where to find the bug repository, but I went to
> www.perl.org and found it pretty quickly. (Hint, hint.)
Not really complicated
http://bugs.perl.org/
regards,
fabian
------------------------------
Date: Wed, 20 Apr 2005 00:06:36 -0000
From: darkon <darkon.tda@gmail.com>
Subject: Re: ISO Perl reported bugs database
Message-Id: <Xns963DCC9176762darkon@216.168.3.30>
Fabian Pilkowski <pilkowsk@informatik.uni-marburg.de> wrote:
> * David K. Wall schrieb:
>> bill <please_post@nomail.edu> wrote:
>>
>>> Is there a database of reported Perl bugs?
>>
>> I didn't know offhand where to find the bug repository, but I
>> went to www.perl.org and found it pretty quickly. (Hint,
>> hint.)
>
> Not really complicated
>
> http://bugs.perl.org/
Well, yeah, but my point was that to find almost anything related to
Perl, perl.org is the best place to start. Learning Perl?
learn.perl.org. Perl jobs? jobs.perl.org. Bugs? bugs.perl.org.
Now let me see, what's at sex.perl.org?
------------------------------
Date: Tue, 19 Apr 2005 19:37:41 -0500
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: ISO Perl reported bugs database
Message-Id: <slrnd6b92l.2eb.tadmc@magna.augustmail.com>
darkon <darkon.tda@gmail.com> wrote:
> Well, yeah, but my point was that to find almost anything related to
> Perl, perl.org is the best place to start. Learning Perl?
> learn.perl.org. Perl jobs? jobs.perl.org. Bugs? bugs.perl.org.
>
> Now let me see, what's at sex.perl.org?
When I tried it I got:
500 Server Error, I have a headache
just my luck...
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Tue, 19 Apr 2005 20:44:59 -0400
From: Sherm Pendley <spamtrap@dot-app.org>
Subject: Re: ISO Perl reported bugs database
Message-Id: <8qmdnTu4ipGWO_jfRVn-iA@adelphia.com>
Tad McClellan wrote:
> darkon <darkon.tda@gmail.com> wrote:
>
>>Now let me see, what's at sex.perl.org?
>
> When I tried it I got:
>
> 500 Server Error, I have a headache
>
> just my luck...
Considering that Perl's mascot is a camel, I'd say your luck was pretty
good.
As Uri would say... ouch, my eyes!
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
------------------------------
Date: Wed, 20 Apr 2005 01:45:12 +0200
From: Fabian Pilkowski <pilkowsk@informatik.uni-marburg.de>
Subject: Re: Perl + Dreamweaver?
Message-Id: <3cljecF6p7dofU1@individual.net>
* Nikos schrieb:
> Fabian Pilkowski wrote:
>
> Thanks a lot Fabian now its more clear to me but i still cant convert
> this index.pl script i made with the use of cgi.pm to the HTML::Template
> way. Here is is btw:
>
> #!/usr/bin/perl -w
> use CGI::Carp qw(fatalsToBrowser);
> use CGI::Cookie;
> use CGI qw(:standard);
> use DBI;
> use DBD::mysql;
Please, don't forget to use
use strict;
use warnings;
these days. If you don't know what this will do, read the identically
named sections in perldoc.
[...]
> $data = "Καλώς ήρθες " .$host. "! Χαίρομαι πολύ που σε ξαναβλέπω!\n" .
> "Τελευταία φορα ήρθες εδώ ως " .$row->{host}. " στις "
> .$row->{xronos}. " !!\n" .
> "Αυτή είναι η " .$row->{visits}. " φορά που επισκέφτεσαι την
> σελίδα μου και χαίρομαι πολύ που την βρίσκεις ενδιαφέρουσα !!!\n" .
> "Την τελευταία φορά διάβασες το κείμενο [ "
> .$row->{keimeno}. " ]\n" .
> "Ποιo λόγο θα ήθελες να μελετήσεις αυτήν τη φορά ?!?";
Ehm, could *you* read this? I assume this are many of Greek letters,
since your headers show me, you're from Greece. But nevertheless, your
header declare "iso-8859-1" as charset which doesn't contain any Greek
letter. So, why using Greek chars in your posting? Or even better: Why
not choosing a charset like "iso-8859-7" where all of your chars exist?
>
> What i am trying to figure out is if the above script would be more
> straightforward with the use of HTML::Template.
> I tried to do ti but i didnt managed it....as expected.
>
> The idea is to Separate the html from the pure perl code(here we dont
> have html really since i use cgi.pm) but by trying that i *must* write
> from scratch the pure html code(which i am trying to avoid) of the
> script and the pure perl code which of course this time would be much
> smaller. But i also have Javascript inserted here....
It's no problem if your template contains JavaScript code.
>
> Do you really think that the above script can be rewritten in a more
> straightforward way considering the use of the methods we discussed?
You can get all your HTML code by reqesting it from your script you have
shown above. Then read through it and replace each potentially variable
with its corresponding HTML-Template-tag »<tmpl_var ...>«. This way, you
get a template based on your previous script.
Afterwards, you just have to fill in these values. This could be done
the same way as in your old script -- just with one difference: don't
print these values out with CGI.pm's methods rather than store them in
one hash, as I mentioned in my previous posting.
Finally, you have to reading the template, filling in your values and
printing it out -- nothing you don't know about.
>
> If yes, can you guys help me convert it so to see if it fits me better...
> I tried a little according to the directives you provided, but because i
> made a lot of errors i stopped before i hit the keyboard and screen.
Sounds, you generate your templates by hand, not by Dreamweaver. For me,
that's the usual (and sometimes fastest) way to do this ;-)
I'll hope, the explanation above could help you.
regards,
fabian
------------------------------
Date: 19 Apr 2005 19:28:43 -0700
From: "johnh" <horner.john@gmail.com>
Subject: Re: Perl + Dreamweaver?
Message-Id: <1113964123.823500.35290@o13g2000cwo.googlegroups.com>
Not much help to the original poster, but I just wanted to say that
there is one way in which Perl and Dreamweaver can "work together" --
it's possible to add new tags, for instance, the HTML::Template tags,
to Dreamweaver, at which point they will be pretty-printed, checked,
auto-completed etc just like all other tags.
In my version it's done via "Tag Libraries..." at the bottom of the
Edit menu, but things tend to move around in different versions of DW.
You not only add the tag but the correct attributes as well. Say what
you like about DW but it's not short of features.
------------------------------
Date: 19 Apr 2005 15:53:37 -0700
From: "citius21j@yahoo.com" <citius21j@yahoo.com>
Subject: Re: Perl XML parsing
Message-Id: <1113951217.259399.170270@f14g2000cwb.googlegroups.com>
The problem with the second method is
a)Since it is reading element from end handle...Elements like
current_address are output in the end. I would want them to show on
top..before the address
b) Also text in CDATA doesnt get parsed
_Output Snippet (Start)
CB_format_name : Cuddebacke, Harry
SSN : 444000666
address : 90345 Phocis Rd
city : Powell
state : OH
zip : 43065
current_address:
Output Snippet(End)
Please advise. Looking forward to your reply
------------------------------
Date: Tue, 19 Apr 2005 19:35:33 -0500
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: Perl XML parsing
Message-Id: <slrnd6b8ul.2eb.tadmc@magna.augustmail.com>
citius21j@yahoo.com <citius21j@yahoo.com> wrote:
> Please advise.
Please learn how compose a proper followup.
http://web.presby.edu/~nnqadmin/nnq/nquote.html
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: 19 Apr 2005 22:22:36 GMT
From: xhoster@gmail.com
Subject: Re: Sorting a large XML file
Message-Id: <20050419182235.989$vK@newsreader.com>
"Rishi Dhupar" <rishid@gmail.com> wrote:
> Hi,
>
> I have a 40-50 mb XML files consisting of 1000's of nodes that look
> like:
> <File>
> <FileOwner></FileOwner>
> <FilePath>C:\perl_files</FilePath>
> <FileName>1.xml</FileName>
> <FileAccessed>4/18/2005</FileAccessed>
> <FileModified>4/15/2005</FileModified>
> <FileCreated>4/18/2005</FileCreated>
> <FileSize>1342</FileSize>
> </File>
>
> I don't really care what it is sorted by, but as long as I can sort the
> file in some manor that is the same each time.
What was wrong with Ian Wilson's response from the last time when you
asked a very similar question?
> Is there any method to doing this? Loading the XML into memory and then
> sorting is too memory intensive. My files could get upwards to 200mb.
>
> Thanks for any tips
My tip would be to not use XML for something it is ill-suited for.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
------------------------------
Date: 19 Apr 2005 23:06:44 GMT
From: John Bokma <postmaster@castleamber.com>
Subject: Re: Sorting a large XML file
Message-Id: <Xns963DB838473AAcastleamber@130.133.1.4>
Rishi Dhupar wrote:
> Hi,
>
> I have a 40-50 mb XML files consisting of 1000's of nodes that look
> like:
> <File>
> <FileOwner></FileOwner>
> <FilePath>C:\perl_files</FilePath>
> <FileName>1.xml</FileName>
> <FileAccessed>4/18/2005</FileAccessed>
> <FileModified>4/15/2005</FileModified>
> <FileCreated>4/18/2005</FileCreated>
> <FileSize>1342</FileSize>
> </File>
>
> I don't really care what it is sorted by, but as long as I can sort the
> file in some manor that is the same each time.
>
> Is there any method to doing this? Loading the XML into memory and then
> sorting is too memory intensive. My files could get upwards to 200mb.
Parse it using a fast parser and make the info very compact, e.g. glue path
and name together, drop the // from the date, etc.
If you want to pay me, drop me a line :-D.
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
------------------------------
Date: 19 Apr 2005 18:51:37 -0700
From: "rishid@gmail.com" <rishid@gmail.com>
Subject: Re: Sorting a large XML file
Message-Id: <1113961897.485938.323800@g14g2000cwa.googlegroups.com>
Just found xml::filter::sort
It is a godsend, does everything I need and has buffers and max memory
for large files. Pretty amazing module actually. Just found a bug in
it which is ticking me off, hopefully the author can get back to me.
If anyone has any experience with it here is the bug:
My XML Input file
<File>
<FileOwner></FileOwner>
<FilePath>C:\perl_files</FilePath>
<FileName>FSW_Output.xml</FileName>
<FileAccessed>4/18/2005</FileAccessed>
<FileModified>4/18/2005</FileModified>
<FileCreated>4/18/2005</FileCreated>
<FileSize>0</FileSize>
</File>
This is what is outputted:
<File>
<FileOwner />
<FilePath>C:\perl_files</FilePath>
<FileName>FSW_Output.xml</FileName>
<FileAccessed>4/18/2005</FileAccessed>
<FileModified>4/18/2005</FileModified>
<FileCreated>4/18/2005</FileCreated>
<FileSize />0
</File>
The output, FileOwner and FileSize gets messed up. Cannot figure out
what is wrong with it.
------------------------------
Date: Tue, 19 Apr 2005 22:06:07 -0400
From: Sherm Pendley <spamtrap@dot-app.org>
Subject: Re: Sorting a large XML file
Message-Id: <15idnQANxN2SJPjfRVn-gQ@adelphia.com>
rishid@gmail.com wrote:
> This is what is outputted:
> <File>
> <FileOwner />
> <FilePath>C:\perl_files</FilePath>
> <FileName>FSW_Output.xml</FileName>
> <FileAccessed>4/18/2005</FileAccessed>
> <FileModified>4/18/2005</FileModified>
> <FileCreated>4/18/2005</FileCreated>
> <FileSize />0
> </File>
>
> The output, FileOwner and FileSize gets messed up. Cannot figure out
> what is wrong with it.
Nothing wrong with FileOwner - that's a valid way to represent an empty
element in XML. Parsers will treat <FileOwner /> the same they would a
pair of opening and closing tags with nothing between them.
Don't know what happened to FileSize though...
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
------------------------------
Date: 20 Apr 2005 02:10:55 GMT
From: John Bokma <postmaster@castleamber.com>
Subject: Re: Sorting a large XML file
Message-Id: <Xns963DD75C9600Dcastleamber@130.133.1.4>
Sherm Pendley wrote:
> rishid@gmail.com wrote:
>
>> This is what is outputted:
>> <File>
>> <FileOwner />
[ snip ]
>> <FileSize />0
>> </File>
>>
>> The output, FileOwner and FileSize gets messed up. Cannot figure out
>> what is wrong with it.
>
> Nothing wrong with FileOwner - that's a valid way to represent an empty
> element in XML. Parsers will treat <FileOwner /> the same they would a
> pair of opening and closing tags with nothing between them.
>
> Don't know what happened to FileSize though...
Best guess: in a badly written test, 0 is seen as empty string :-D
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
------------------------------
Date: Wed, 20 Apr 2005 01:45:48 +0200
From: "HC" <assegai@planet.nl>
Subject: Re: Telnet from windows to an arm32 processor
Message-Id: <d445s0$6mi$1@reader11.wxs.nl>
"nbufkin" <nancy.bufkin@timedomain.com> wrote in message
news:1113944177.331315.270440@f14g2000cwb.googlegroups.com...
>I am trying to connect via telnet from a windows 2000 machine to a
> arm32 processor using perl. The example scripts provided by this group
> are similiar to the following:
>
> use Net::Telnet ();
> $t = new Net::Telnet (Timeout => 10,
> Prompt => '/bash\$ $/');
> $t->open("sparky");
> $t->login($username, $passwd);
> @lines = $t->cmd("who");
> print @lines;
>
> The device I am connecting to does not require a username and password,
> so I have modified the script to look like this:
>
> use Net::Telnet ();
> $t = new Net::Telnet (Timeout => 10,
> Prompt => '->');
> $t->open("10.1.4.2");
> @lines = $t->cmd("i");
> print @lines;
>
> The script return with the following error message:
>
> "bad match operator: opening delimiter missing: -> at try3 line 2"
>
> The script always fails at the prompt line. Does the Net::Telnet
> object require a username and password?
>
compare:
Prompt => '/bash\$ $/';
and...
Prompt => '->';
the first one looks like: '/something/'
and yours looks like 'something'
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
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: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
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 V10 Issue 7994
***************************************