[23358] in Perl-Users-Digest
Perl-Users Digest, Issue: 5577 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Sep 27 21:10:33 2003
Date: Sat, 27 Sep 2003 18:10:12 -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 Sat, 27 Sep 2003 Volume: 10 Number: 5577
Today's topics:
Re: Net-Telnet-Cisco module <tcurrey@no.no.i.said.no>
Re: Net-Telnet-Cisco module (Prashant Varghese)
Re: Net-Telnet-Cisco module <bwaNOlSPtAMon@rochester.rr.com>
Re: Net-Telnet-Cisco module <abigail@abigail.nl>
Re: Net-Telnet-Cisco module <abigail@abigail.nl>
Re: Obtain Connection Duration <mikeflan@earthlink.net>
perl makefile.pl --help <king21122@yahoo.com>
Re: perl makefile.pl --help <tony_curtis32@_SPAMTRAP_yahoo.com>
Re: perl makefile.pl --help <REMOVEsdnCAPS@comcast.net>
Plugin Framework <vvikas@cse.buffalo.edu>
Re: POD docs and ANSI escapes <grazz@pobox.com>
Problem viewing Google threads for clpm (& others) (Chris Charley)
Re: reading STDIN with Perl on Linux / Apache <Juha.Laiho@iki.fi>
Strings, pattern matching (MJS)
Using modules on server <notavailable@nospamplease.com>
Re: Using modules on server <noreply@gunnar.cc>
Re: <bwalton@rochester.rr.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 27 Sep 2003 11:16:23 -0700
From: "Trent Curry" <tcurrey@no.no.i.said.no>
Subject: Re: Net-Telnet-Cisco module
Message-Id: <bl4k68$n28$1@news.astound.net>
John Bokma wrote:
> Trent Curry wrote:
>
>> John Bokma wrote:
>>
>>> Darren Dunham wrote:
>>
>> [snipage]
>>
>>>> problem. Tar says it's not a gzip file. Old versions of Netscape
>>>> used to ungzip dowloads, but keep the .gz extension...
>>>
>>> Weird. I remember IE messing up the extension.
>>
>> IE on a UNIX system??? (Yes theres Wine, but afaik, IE (windows),
>> since 4.x atleast has always been fine with downloading binaries,
>> and it'll be a cold day in hell that'll IE would ever ungzip a gz
>> file.
>
> Not on *Nix system (altough there has been an announcement for an IE
> version for Solaris IIRC, don't know if it has been available). What I
> mean is that IE has the nasty habbit to change the extension. IIRC it
> turns tar.gz into tar.tar
I do remember something like that, probably older versions (4/3?). Never had
that proplem with IE 5 and 6.
--
Trent Curry
perl -e
'($s=qq/e29716770256864702379602c6275605/)=~s!([0-9a-f]{2})!pack("h2",$1)!eg
;print(reverse("$s")."\n");'
------------------------------
Date: 27 Sep 2003 11:20:51 -0700
From: pv79@ddsl.net (Prashant Varghese)
Subject: Re: Net-Telnet-Cisco module
Message-Id: <5ff7e2e0.0309271020.13be7c52@posting.google.com>
Louis Erickson <wwonko@rdwarf.com> wrote in message news:<bl27uj$9ia$1@holly.rdwarf.com>...
> John Bokma <postmaster@castleamber.com.invalid> wrote:
> : Prashant Varghese wrote:
>
> :> Hi everybody,
> :>
> :> I'm getting the following error when i try to unpack the Net-Telnet-Cisco
> :> module from CPAN.Has anyone faced this ?How can get out of this problem?
> :>
> :> #tar -zxvf Net-Telnet-Cisco-1.10.tar.gz
>
> : Which OS? IIRC Sun OS has a broken tar.
>
> How did you download it? If you used a browser, it may have helpfully
> ungzipped it for you, and not mentioned that fact.
>
> To find out, ask tar to run a table of contents of the file:
>
> tar -tf Net-Telnet-Cisco-1.10.tar.gz
>
> If that's the case, rename the file so there's no .gz extension or you'll
> only be confused later. And don't download with that browser any more.
Hi ,
Thanks for the reply..I'm using Red Hat Linux
I used these browsers Galeon,Konquero and Netscape.
All are giving the same error.As u said i tried using the tar -tf
command and here's the output of that
#tar -tf Net-Telnet-Cisco-1.10.tar.gz
tar: 40 garbage bytes ignored at end of archive
tar: Error exit delayed from previous errors
Also i tried renaming it to .tar file and tried tar -xvf and still got
the same output as given above in this message.
Any idea whats wrong?
Kindly reply
Thanks and regards,
Prashant
------------------------------
Date: Sat, 27 Sep 2003 20:47:40 GMT
From: Bob Walton <bwaNOlSPtAMon@rochester.rr.com>
Subject: Re: Net-Telnet-Cisco module
Message-Id: <3F75F76A.3020403@rochester.rr.com>
Prashant Varghese wrote:
> Louis Erickson <wwonko@rdwarf.com> wrote in message news:<bl27uj$9ia$1@holly.rdwarf.com>...
>
>>John Bokma <postmaster@castleamber.com.invalid> wrote:
>>: Prashant Varghese wrote:
...
> Thanks for the reply..I'm using Red Hat Linux
> I used these browsers Galeon,Konquero and Netscape.
> All are giving the same error.As u said i tried using the tar -tf
> command and here's the output of that
>
> #tar -tf Net-Telnet-Cisco-1.10.tar.gz
> tar: 40 garbage bytes ignored at end of archive
> tar: Error exit delayed from previous errors
>
> Also i tried renaming it to .tar file and tried tar -xvf and still got
> the same output as given above in this message.
>
> Any idea whats wrong?
...
> Prashant
>
FWIW: It downloads and unzips/untars fine using WinZip on Windoze 98SE.
I downloaded with Netscape 6.2 .
--
Bob Walton
------------------------------
Date: 27 Sep 2003 23:41:56 GMT
From: Abigail <abigail@abigail.nl>
Subject: Re: Net-Telnet-Cisco module
Message-Id: <slrnbnc824.8qg.abigail@alexandra.abigail.nl>
John Bokma (postmaster@castleamber.com.invalid) wrote on MMMDCLXXVIII
September MCMXCIII in <URL:news:1064617178.868305@halkan.kabelfoon.nl>:
^^
^^ Not on *Nix system (altough there has been an announcement for an IE
^^ version for Solaris IIRC, don't know if it has been available). What I
^^ mean is that IE has the nasty habbit to change the extension. IIRC it
^^ turns tar.gz into tar.tar
I've used IE on Solaris, but that was a few years ago. Far more stable
than Netscape was at the time.
Not that this has anything to do with Perl.
Abigail
--
package Just_another_Perl_Hacker; sub print {($_=$_[0])=~ s/_/ /g;
print } sub __PACKAGE__ { &
print ( __PACKAGE__)} &
__PACKAGE__
( )
------------------------------
Date: 27 Sep 2003 23:44:44 GMT
From: Abigail <abigail@abigail.nl>
Subject: Re: Net-Telnet-Cisco module
Message-Id: <slrnbnc87c.8qg.abigail@alexandra.abigail.nl>
John Bokma (postmaster@castleamber.com.invalid) wrote on MMMDCLXXVIII
September MCMXCIII in <URL:news:1064617432.797494@halkan.kabelfoon.nl>:
{}
{} I have no experience with Solaris (use IRIX and GNU/Linux :-) ) but I
{} remember warnings not to use the Sun version of tar but the GNU one
{} instead because of a serious bug in the former.
A serious bug, or the "SUN tar is following another standard than GNU tar,
and that standard doesn't allow for filenames over 100 chars" issue?
And, as has been explained on the p5p mailinglist, due to backwards
compatability reasons, this is unlikely to ever change.
Abigail
--
sub camel (^#87=i@J&&&#]u'^^s]#'#={123{#}7890t[0.9]9@+*`"'***}A&&&}n2o}00}t324i;
h[{e **###{r{+P={**{e^^^#'#i@{r'^=^{l+{#}H***i[0.9]&@a5`"':&^;&^,*&^$43##@@####;
c}^^^&&&k}&&&}#=e*****[]}'r####'`=437*{#};::'1[0.9]2@43`"'*#==[[.{{],,,1278@#@);
print+((($llama=prototype'camel')=~y|+{#}$=^*&[0-9]i@:;`"',.| |d)&&$llama."\n");
------------------------------
Date: Sat, 27 Sep 2003 20:21:50 GMT
From: Mike Flannigan <mikeflan@earthlink.net>
Subject: Re: Obtain Connection Duration
Message-Id: <3F75F205.BFB90C3B@earthlink.net>
I got a new idea (by myself). Maybe if I search the
System log and calculate it myself . . .
I'll let you know.
Mike
Mike Flannigan wrote:
> I'm trying to obtain the DUN connection duration on my
> Win2000 system that runs Netscape 4.72 (Mozilla).
> I searched Google and CPAN, but could not locate
> much, except that others are also looking for this capability.
>
> If I was really smart, I might be able to strip it out of:
> http://ei.kefro.st/projects/btrackalyzer/1.11/trackerlyze.pl.html
> but I'm not that smart. Can anyone help?
>
> Mike
------------------------------
Date: Sun, 28 Sep 2003 09:09:20 +1000
From: King <king21122@yahoo.com>
Subject: perl makefile.pl --help
Message-Id: <3F7618A0.4080604@yahoo.com>
Hello
very novice question
what is perl makefile.pl does and why the switch --help is putting out
$perl makefile.pl --help
Can't open perl script "makefile.pl": No such file or directory
$ even if I /bin/su gives the same line above.
thanks for helping
------------------------------
Date: Sat, 27 Sep 2003 18:10:59 -0500
From: Tony Curtis <tony_curtis32@_SPAMTRAP_yahoo.com>
Subject: Re: perl makefile.pl --help
Message-Id: <871xu1j08s.fsf@limey.hpcc.uh.edu>
>> On Sun, 28 Sep 2003 09:09:20 +1000,
>> King <king21122@yahoo.com> said:
> what is perl makefile.pl does and why the switch --help
> is putting out $perl makefile.pl --help
> Can't open perl script "makefile.pl": No such file or directory
Isn't it self-explanatory? There's no such file.
hth
t
------------------------------
Date: Sat, 27 Sep 2003 18:53:12 -0500
From: "Eric J. Roode" <REMOVEsdnCAPS@comcast.net>
Subject: Re: perl makefile.pl --help
Message-Id: <Xns9403CA29F3500sdn.comcast@206.127.4.25>
-----BEGIN xxx SIGNED MESSAGE-----
Hash: SHA1
King <king21122@yahoo.com> wrote in news:3F7618A0.4080604@yahoo.com:
> Hello
>
> very novice question
>
> what is perl makefile.pl does and why the switch --help is putting out
> $perl makefile.pl --help
> Can't open perl script "makefile.pl": No such file or directory
> $ even if I /bin/su gives the same line above.
Okay, I'm going to take a wild guess here and suggest that there's no such
file as makefile.pl. I don't know why that occurred to me.
- --
Eric
$_ = reverse sort $ /. r , qw p ekca lre uJ reh
ts p , map $ _. $ " , qw e p h tona e and print
-----BEGIN xxx SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBP3YitmPeouIeTNHoEQKslACdGml7fwOM0kl55NyNk86F0jqeaIAAoK5x
Oobi+4UBHolOiYs5fVWM3hFX
=LKr2
-----END PGP SIGNATURE-----
------------------------------
Date: Sat, 27 Sep 2003 19:57:19 -0400
From: Vikas <vvikas@cse.buffalo.edu>
Subject: Plugin Framework
Message-Id: <Pine.SOL.4.56.0309271955050.5161@pollux.cse.Buffalo.EDU>
Hi,
I have been programming in Perl for long and at number of places I come
across modules which say they follow a plugin framework and anyone can
plug their plugins (codes) into their software.
Can anyone give me pointers as to how to develop such a software which
supports plugin framework . I mean can I read articles or tutorials about
it somewhere?
Thanks,
Vikas.
------------------------------
Date: Sat, 27 Sep 2003 19:40:47 GMT
From: Steve Grazzini <grazz@pobox.com>
Subject: Re: POD docs and ANSI escapes
Message-Id: <3Jldb.9099$541.3980@nwrdny02.gnilink.net>
James Willmore <jwillmore@cyberia.com> wrote:
> On Sat, 27 Sep 2003 22:29:36 +1000
> Sisyphus <kalinaubears@iinet.net.au> wrote:
> > Hi,
> > On my linux box 'perldoc' (but not 'man') is failing to interpret
> > the ANSI escapes. How do I remedy this ?
> >
> > I'm seeing:
> > ESC[1mNAMEESC[0m
> > instead of:
> > NAME
> >
> > (Is this answered in the faq somewhere ? I have a feeling it is, but
> >
> > couldn't find it.)
>
> The "quick fix" is to run perldoc with the '-t' option.
You can also set the LESS environment variable to "-r".
--
Steve
------------------------------
Date: 27 Sep 2003 17:49:16 -0700
From: charley@pulsenet.com (Chris Charley)
Subject: Problem viewing Google threads for clpm (& others)
Message-Id: <4f7ed6d.0309271649.113dfb2f@posting.google.com>
Hi All,
I keep getting the message in Google groups,
Unable to find thread. Please recheck the URL.
when trying to access the links in this group. I did a Google search
and only found one result for this problem (link below).
http://groups.google.com/groups?hl=en&lr=&ie=ISO-8859-1&q=Unable+to+find+thread.+Please+recheck+the+URL&btnG=Google+Search&meta=group%3Dgoogle.public.support.general
It is not only clpm but other groups as well. I don't know how to
reach Google with this problem - couldn't find anyone to contact at
their site.
Is anyone else experiencing this problem? I know this is _way_ OT, but
didn't know where else to ask. Even if someone replies to this post, I
probably won't be able to view it!!
Thanks,
Chris
------------------------------
Date: Sat, 27 Sep 2003 20:17:01 GMT
From: Juha Laiho <Juha.Laiho@iki.fi>
Subject: Re: reading STDIN with Perl on Linux / Apache
Message-Id: <bl4r3h$8js$1@ichaos.ichaos-int>
"John Smith" <someone@microsoft.com> said:
>Well, as it turns out, it appears to work for some reason!
>What I don't understand is why.
>I don't even have to read the STDIN such as:
> read(STDIN, $temp, $ENV{'CONTENT_LENGTH'});
>
>So does Apache or something else automatically assign the STDIN parameters
>to param?
>I guess it's not that important if it works!
Responding late, hope you still follow this thread.
Please DO read the CGI.pm documentation -- it'll contain a number
of other helpful tools for you as well.
http://www.perldoc.com/perl5.6.1/lib/CGI.html
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
------------------------------
Date: 27 Sep 2003 17:24:10 -0700
From: tabletdesktop@yahoo.com (MJS)
Subject: Strings, pattern matching
Message-Id: <f0171209.0309271624.31bc115a@posting.google.com>
I have a hard time matching and replacing this pattern. It works fine
for single line but when I want to replace multiple line pattern, it
doesn't seem to work. I spend a lot of time on faq but I guess I m not
smart enough to figure out where I am going wrong. I couldn't do it
using the regular exp. so I tried doing it using Tie::File.
Please help me with this.
============================
use Tie::File;
use strict;
use warnings;
# tie @array to filename using Tie::File
tie my @array, 'Tie::File', 'result.txt' or die "Cannot open
result.txt:$!";
while(<result.txt>){
for(@array) {
my $pattern = "The text
to be
searched
in differnt
lines inclunding white lines and indentation";
my $replace = " The replacing
text
also in
multiple lines
including indentation and white lines ";
s/$pattern/$replace/;
}
}
untie @array;
==============================
------------------------------
Date: Sun, 28 Sep 2003 01:04:19 +0100
From: "D Borland" <notavailable@nospamplease.com>
Subject: Using modules on server
Message-Id: <Zzpdb.928$Wi.201@newsfep3-gui.server.ntli.net>
Hi folks,
Can anyone help out with the followings:-
I'm trying to use File::basename in a script rather than re-invent the wheel
as such as i keep getting told. But the hosting company i'm with don't have
it on and aren't likely to install it for me. Can i just upload the perl
module to the server myself and tell the use pragma where the module it
located? e.g. use mymodules/basename.pm;
With Thanks
Dagmar
------------------------------
Date: Sun, 28 Sep 2003 02:28:28 +0200
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: Using modules on server
Message-Id: <bl5a7k$7uond$1@ID-184292.news.uni-berlin.de>
D Borland wrote:
> I'm trying to use File::basename in a script rather than re-invent
> the wheel as such as i keep getting told. But the hosting company
> i'm with don't have it on and aren't likely to install it for me.
> Can i just upload the perl module to the server myself and tell the
> use pragma where the module it located? e.g. use
> mymodules/basename.pm;
This is a short description (for another module) that should give you
the idea:
http://search.cpan.org/~gunnar/CGI-ContactForm-1.16/lib/CGI/ContactForm.pm#Manual_Installation
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: Sat, 19 Jul 2003 01:59:56 GMT
From: Bob Walton <bwalton@rochester.rr.com>
Subject: Re:
Message-Id: <3F18A600.3040306@rochester.rr.com>
Ron wrote:
> Tried this code get a server 500 error.
>
> Anyone know what's wrong with it?
>
> if $DayName eq "Select a Day" or $RouteName eq "Select A Route") {
(---^
> dienice("Please use the back button on your browser to fill out the Day
> & Route fields.");
> }
...
> Ron
...
--
Bob Walton
------------------------------
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.
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 5577
***************************************