[11878] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 5478 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Apr 25 11:07:28 1999

Date: Sun, 25 Apr 99 08:00:18 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Sun, 25 Apr 1999     Volume: 8 Number: 5478

Today's topics:
    Re: $ENV...Explained <tripix@tdi-net.freeserve.co.uk>
    Re: $ENV...Explained <selectthree@gsig-net.qc.ca>
    Re: CHAT engine wanted ($) <gs_london@yahoo.com>
    Re: Different between recurrence and looping <sunil.rao@ic.ac.uk>
    Re: Extracting emails from array (Randal L. Schwartz)
    Re: FAQ 7.13: What is variable suicide and how can I pr (Larry Rosler)
        free perl scripts http://www.ven.cc/VEN/COMPUTER/PERL/ <tim.newman@ven.cc>
    Re: Generating a unique string for order number (Benjamin Franz)
        Help me with a simple cgi/perl script <satcp@ping.be>
    Re: How to make an array name to be a variable? (Tad McClellan)
    Re: Lockfile-Problem (Sitaram Chamarty)
        MacPerl to AS (well, vice versa) (Carl Stern)
    Re: Net::FTP creates Empty file <tripix@tdi-net.freeserve.co.uk>
        Overriding a Module? <mwatkins@promotion4free.com>
    Re: PERL Books <tchrist@mox.perl.com>
    Re: Running CGI scripts OFFLINE <tk@toilets.freeserve.co.uk>
    Re: Running CGI scripts OFFLINE <kram@techie.com>
    Re: SSI calls (Juho Cederstrom)
    Re: TCP/IP beginner <wbrogden@bga.com>
        web automation question raj1d@my-dejanews.com
        Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)

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

Date: Sun, 25 Apr 1999 11:43:36 +0100
From: "Wayne Keenan" <tripix@tdi-net.freeserve.co.uk>
Subject: Re: $ENV...Explained
Message-Id: <7fus4k$gon$1@news7.svr.pol.co.uk>


HowToFoldSoup wrote in message <7fua98$ed2$1@sys14.hou.wt.net>...
>I believe the people who answered the question weren't understanding the
>question.
>
>I actually came here looking for a similar list, preferably complete, is
>anyone can provide one.
>
>Thanks.


Apache comes with a 4 line cgi script "printenv", install that.





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

Date: Sun, 25 Apr 1999 08:44:49 -0400
From: Pierre-Luc <selectthree@gsig-net.qc.ca>
Subject: Re: $ENV...Explained
Message-Id: <37230E40.24DCAADB@gsig-net.qc.ca>

I would simply add another one : HTTP_USER_AGENT.

If there is anybody who has more, I would really like to know them.

Pierre-Luc Soucy



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

Date: Sun, 25 Apr 1999 12:11:01 +0100
From: "ggs" <gs_london@yahoo.com>
Subject: Re: CHAT engine wanted ($)
Message-Id: <7fut30$avi$1@starburst.uk.insnet.net>

I'll do it

Fee $50,00

Ours wrote in message <7fq59m$drc$1@news.casema.net>...
>Featuring:
>
>Frames->autoscroll/reload
>Avatars
>File xfer
>Whispering
>Multiple rooms
>Every room it's own config (background, etc.)
>Switching possible
>Search user
>
>
>Willing to pay for good results.
>
>Anyone?
>
>Mailme!
>
>




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

Date: Sun, 25 Apr 1999 00:40:06 +0100
From: Sunil Rao <sunil.rao@ic.ac.uk>
Subject: Re: Different between recurrence and looping
Message-Id: <FouMZcAWZlI3EwXp@raos.demon.co.uk>

Aaron Hamid <arh14@nospam.cornell.edu> wrote, and I reply...
>Well, the *concept* of recurrence is important, regardless of whether it
>can actually be emulated/implemented simply by clever iteration.  For
>instance, the ansi C qsort routine (which is a Quicksort, which is
>recursive)

I agree that recursion is important and udeful, but I'd like to point
out that nowhere in the C standards document does it specify that
qsort() be an implementation of the Quicksort algorithm.

-- 
{ Sunil Rao }
"Is there any light more becoming than that, low and richly tinted, that comes 
subdued through the mists of sunshine?"
        -- J Sheridan Le Fanu


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

Date: 25 Apr 1999 05:53:32 -0700
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: Extracting emails from array
Message-Id: <m1u2u4zws3.fsf@halfdome.holdit.com>

>>>>> "Jay" == Jay Glascoe <jglascoe@giss.nasa.gov> writes:

Jay> David Raufeisen wrote:
>> 
>> I have an array @message in which i read in an email message from a
>> file.. how can i extract all email address's ( *@*.* ) from @message
>> into another array @emails?

Jay> I probably shouldn't answer this, but I'm bored.

Jay> @emails = map /\b([\w.-]+@(?:[\w.-]+\.)+[\w.-]+?\w)\b/g, @message;

Jay> the regex isn't foolproof.

Or correct.  It doesn't find

	fred&barney@stonehenge.com

which is a perfectly legal address (try it... it's an autoresponder).
Or my friend Eli, with an address of something like <*@qz.to>, also
legal.

print "Just another Perl hacker,"

-- 
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@teleport.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me


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

Date: Sun, 25 Apr 1999 07:44:38 -0700
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: FAQ 7.13: What is variable suicide and how can I prevent it?
Message-Id: <MPG.118cca1eea7dcaec989936@nntp.hpl.hp.com>

[Posted and a courtesy copy sent.]

In article <37230a24@cs.colorado.edu> on 25 Apr 1999 06:27:16 -0700, Tom 
Christiansen <perlfaq-suggestions@perl.com> says...
 ... 
>         my $f = "foo";
>         sub T {
>           while ($i++ < 3) { my $f = $f; $f .= "bar"; print $f, "\n" }
>         }
>         T;
>         print "Finally $f\n";
> 
>     The $f that has "bar" added to it three times should be a new `$f'
>     (`my $f' should create a new local variable each time through the
>     loop). It isn't, however. This is a bug, and will be fixed.

On 5.004_03 and 5.005_03 it works properly.  The FAQ should be fixed.

Putting these things in front of use periodically is a Good Thing!
  
-- 
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com


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

Date: Sun, 25 Apr 1999 12:56:51 GMT
From: "Tim Newman" <tim.newman@ven.cc>
Subject: free perl scripts http://www.ven.cc/VEN/COMPUTER/PERL/
Message-Id: <niEU2.44822$_k1.34970@news.chello.at>

Hello everybody,

If you are interested in FREE PERL SCRIPTS is this page the right one for
you:

http://www.ven.cc/VEN/COMPUTER/PERL/

Here are many kinds of PERL SCRIPTS in different topics.

Just try it




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

Date: Sun, 25 Apr 1999 13:21:32 GMT
From: snowhare@long-lake.nihongo.org (Benjamin Franz)
Subject: Re: Generating a unique string for order number
Message-Id: <wFEU2.2912$oU1.204706@typhoon-sf.snfc21.pbi.net>

In article <7ftdh7$3eh$1@gellyfish.btinternet.com>,
Jonathan Stowe  <gellyfish@gellyfish.com> wrote:
>On 24 Apr 1999 19:51:25 GMT Abigail wrote:
>> 
>> One problem with creating unique number by concatting PID and time is having
>> multiple machines. If in 3 months, you application is a success, but running
>> it on one machine isn't going to work anymore, and it's decided that it's now
>> going to be run on 5 machines, your "unique" numbers might no longer be unique
>> 
>
>OK I raise :
>
>$" = '';
>$niqid = "$$@{[localtime]}@{[`hostname`]}";

Caveat: Don't try this on networked file systems.

#!/usr/bin/perl -w

print Local::UniqueID::unique_id({ -file => '/tmp/test-unique-id',
                         -host_unique_id => '203.186.233.133-a',
                         }), "\n";

package Local::UniqueID;

use strict;
use Fcntl qw (:flock);

sub unique_id {
    my ($parm_ref)       = @_;
    my ($counterfile)    = $parm_ref->{-file};
    my ($host_unique_id) = $parm_ref->{-host_unique_id};

    if (not defined $counterfile) {
        die ("Required -file parameter not set");
    } elsif (not defined $host_unique_id) {
        die ("Required -host_unique_id not set");
    }

    open (UNIQUECOUNTERFILE,"+>>$counterfile") 
        or die ("Unable to open '$counterfile': $!\n");
    my $lock_counter = 100;
    my $locked       = 0;
    until ($locked = flock(UNIQUECOUNTERFILE,&LOCK_EX|&LOCK_NB)) {
        if (not $lock_counter--) { 
            die ("Unable to lock '$counterfile': $!\n")
        }
        select (undef,undef,undef,0.1);
    }
    seek (UNIQUECOUNTERFILE,0,0) 
        or die ("Unable to seek position '0' in '$counterfile': $!\n");
    my $unique_counter = <UNIQUECOUNTERFILE>;
    if (not $unique_counter) {
        $unique_counter = '000000000000';
    } else {
        chop $unique_counter;
    }
    $unique_counter++;
    truncate (UNIQUECOUNTERFILE,0) 
        or die ("Unable to truncate '$counterfile': $!\n");
    my $old_fh = select(UNIQUECOUNTERFILE);
    $|=1;
    select ($old_fh);
    print UNIQUECOUNTERFILE "$unique_counter\n";
    close (UNIQUECOUNTERFILE) 
        or die ("Unable to close '$counterfile': $!\n");
 
    "${host_unique_id}-${unique_counter}";
}

-- 
Benjamin Franz


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

Date: Sun, 25 Apr 1999 16:33:30 +0200
From: "SatCP" <satcp@ping.be>
Subject: Help me with a simple cgi/perl script
Message-Id: <7fv8qc$dgs$3@news3.Belgium.EU.net>

Hi everybody,

I'm new to cgi, but want a script on my webpage. I've looked around on the
web but couldn't find a script that does everything I want... I know most of
you will say, go out and buy a good book 'bout cgi and perl, but I only need
1 simple script on my page and I'm not buying a book for that...

Ok, here's the problem (I'll simplify it):
2 drop-down menus, one where you can choose "speed range" and the other
"price range". After clicking Submit a script should return all matching
cars. The script searches through a text file all cars that are in the
selected price range and speed range.
The text file should like this (I think), column 1 is the car name, column 2
the speed and column 3 the price:

Ferrari:300:200000
Mercedes:250:80000
Ford:200:30000
 ...


How to do this in a CGI script?
Please help me finnishing this simple script so I can make my webpage
interactive...
Thanks in advance,

SatCP





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

Date: Sun, 25 Apr 1999 05:25:39 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: How to make an array name to be a variable?
Message-Id: <j2nuf7.gs.ln@magna.metronet.com>

Staffan Liljas (staffan@ngb.se) wrote:
: David Cassell wrote:
: > 
: > Matthew O. Persico wrote:
: > >
: > > Staffan Liljas wrote:
: > > > [big snip]
: > > > Personally, I think hashes are gods greatest gift to the programmer. I
: > > > love them. If I could turn my wife into one, I would.
: > > >
: > > > Staffan
: > >
: > > And just what does SHE think of this? :-)
: > 
: > I find that the phrase "What am I, chopped liver?" comes to mind at
: > this moment...

: Well, I just &kiss( $wife{ 'lips' } ) and she forgives me.


   Men Who Love Hashes and the Keys to Their Wives!

   Next Abigail.


      # the sordid loop that reveals it all
      foreach (sort keys %wife) {
         print "sometimes he kisses her $wife{$_}\n";
      }


--
    Tad McClellan                          SGML Consulting
    tadmc@metronet.com                     Perl programming
    Fort Worth, Texas


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

Date: Sun, 25 Apr 1999 10:42:02 GMT
From: sitaram@diac.com (Sitaram Chamarty)
Subject: Re: Lockfile-Problem
Message-Id: <slrn7i4j3h.1o7.sitaram@japh.unidata.com>

On 23 Apr 1999 09:44:02 -0700, Tom Christiansen <tchrist@mox.perl.com> wrote:

>The best solution is to learn how to use Perl's built-in
>flock() function correctly.  Script kiddies can skate Cobol.

You obviously dont know COBOL.  Or you over-estimate the abilities
of script kiddies.

http://www.diac.com/~sitaram/cobol/stereotypes.html


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

Date: Sun, 25 Apr 1999 21:00:22 +0900
From: cwstern@mitXYZZY.edu (Carl Stern)
Subject: MacPerl to AS (well, vice versa)
Message-Id: <cwstern-2504992100220001@sparrow.riken.go.jp>

Hi there.  This is not  a pure perl question, but rather a
how-can-I-use-perl-here question.

I'm trying to get MacPerl working with BBEdit's include directive.  When
you update a BBEdit file, you can have it call and pass variables to an
OSA script, and then write the reply into the document.  As it doesn't
seem to want to use MacPerl scripts directly, I wrote a simple Applescript
to act as a gateway, calling Do Script on MacPerl and taking the
MacPerl::Reply.

The problem is passing the variables along.  Do Script doesn't appear to
permit any ARGV, and since Do Script has to execute fully before the
script proceeds, I can't additionally call Send Data to pass them along as
standard input.  There are a number of unsatisfactory ways around this,
and at the moment I'm writing a temp file to hold them.  However, I would
be much happier with a more direct and higher-performance solution.  Is
there an elegant solution that doesn't involve directly monkeying with
Apple Events?  So far, I've considered using the Clipboard, though that
still seems rather kludgey (and I can't find a command to directly access
the clipboard using AS).  Another odd idea I had was having the first AS
call a second, which would provide the standard input to the perl script
via Send Data while the first waited for its reply, but this again is just
odd, and I'm not certain the synchronization (performance) would be
particularly good.

Any help appreciated.

-- 
Carl Stern          MIT '98 SB Math (Who needs employable skills?)
"Ryan, I've got a plan!  Smack him around the face a few times...
while I hit him with this Buick!"  "Brilliant!  Let's do it!"
           -Fred Perry, Ninja High School No. 57


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

Date: Sun, 25 Apr 1999 12:25:47 +0100
From: "Wayne Keenan" <tripix@tdi-net.freeserve.co.uk>
Subject: Re: Net::FTP creates Empty file
Message-Id: <7fuukg$e4c$1@news6.svr.pol.co.uk>

Okay, thanks, heres the debug.
As one can see there is no filesize on line <<150 ASCII connection, nor is there a command successful
message. But there is a file of the right name and size 0!
Arrrggghh!


Net::FTP: Net::FTP(2.33)
Net::FTP:   Exporter
Net::FTP:   Net::Cmd(2.11)
Net::FTP:   IO::Socket::INET
Net::FTP:     IO::Socket(1.1603)
Net::FTP:       IO::Handle(1.1505)

Net::FTP=GLOB(0xba75d0)<<< 220 penelope FTP server (SunOS 5.6) ready.
Net::FTP=GLOB(0xba75d0)>>> user wk

Net::FTP=GLOB(0xba75d0)<<< 331 Password required for wk.
Net::FTP=GLOB(0xba75d0)>>> PASS ....
Net::FTP=GLOB(0xba75d0)<<< 230 User wk logged in.
Net::FTP=GLOB(0xba75d0)>>> CWD /home/wk/.WWW

Net::FTP=GLOB(0xba75d0)<<< 250 CWD command successful.
Net::FTP=GLOB(0xba75d0)>>> TYPE A

Net::FTP=GLOB(0xba75d0)<<< 200 Type set to A.
Net::FTP=GLOB(0xba75d0)>>> PORT 62,136,193,133,4,49

Net::FTP=GLOB(0xba75d0)<<< 200 PORT command successful.
Net::FTP=GLOB(0xba75d0)>>> STOR home.html

Net::FTP=GLOB(0xba75d0)<<< 150 ASCII data connection for home.html (62.136.193.133,1073).
Net::FTP=GLOB(0xba75d0)<<< 226 Transfer complete.
Net::FTP=GLOB(0xba75d0)>>> QUIT

Net::FTP=GLOB(0xba75d0)<<< 221 Goodbye.





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

Date: Sun, 25 Apr 1999 15:25:41 +0100
From: "Mike Watkins" <mwatkins@promotion4free.com>
Subject: Overriding a Module?
Message-Id: <OP#P#eyj#GA.363@nih2naad.prod2.compuserve.com>

Hi there,

I'm trying to get CSV files to work on my web server.  I have them working
perfectly fine on my personal computer.  However, my web server didn't have
all of the correct modules installed.

So, I went and installed the three module that are required in my home
directory.  The installation went fine.  Now I find out that the version of
DBI which is installed on the web server is too old.

So, I went and installed the DBI module on my home directory.  The problem
I'm having now is that the script will always use the old version of DBI
instead of my new one which I installed.  Is there anyway to override the
old version of DBI, so the script will use my version instead?

Thanks,
Mike




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

Date: 25 Apr 1999 07:47:48 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: PERL Books
Message-Id: <37231d04@cs.colorado.edu>

 [courtesy cc of this posting sent to cited author via email]

In comp.lang.perl.misc, Zekers <zzekka@intrex.net> writes:
:To be just a bit persnickety - it's UNIX not Unix. 

Haven't you ever read what Dennis said about this?

    Some people are confused over whether this word is
    appropriately `UNIX' or `Unix'; both forms are common, and used
    interchangeably. Dennis Ritchie says that the `UNIX' spelling
    originally happened in CACM's 1974 paper "The UNIX Time-Sharing
    System" because "we had a new typesetter and {troff} had just been
    invented and we were intoxicated by being able to produce small
    caps." Later, dmr tried to get the spelling changed to `Unix'
    in a couple of Bell Labs papers, on the grounds that the word
    is not acronymic. He failed, and eventually (his words) "wimped
    out" on the issue. So, while the trademark today is `UNIX', both
    capitalizations are grounded in ancient usage; the Jargon File uses
    `Unix' in deference to dmr's wishes.

So, spelling it "UNIX" is a mistake, in that 1) it is not an acronym
and 2) is not what dmr wishes used.

--tom
-- 
Intel chips aren't defective.  They just seem that way.


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

Date: Sun, 25 Apr 1999 11:19:31 +0100
From: "Troy Knight" <tk@toilets.freeserve.co.uk>
Subject: Re: Running CGI scripts OFFLINE
Message-Id: <7fuq6d$54h$1@news8.svr.pol.co.uk>

wait a miuntem are you lot talking about running perl scripts OFFLINE? on
your computer?  How cool is that, not having to pay hundreds of $/# to test
out the scripts.  I dont suppose I could do it on my win 98 machine could
I???

Kram <kram@techie.com> wrote in message news:pLMS2.1409$_3.801@stones...
> hi paul
> a cheat? good way to setup perl is to install but use root dir c:\usr not
> c:\perl
> that way you get c:/usr/bin etc so sherbang #!/usr/bin/perl is left alone.
> and i dont associate .pl ! makes it eaiser to edit them with "NOTEPAD"
> that might upset some people.
> or for local testing change sherbang to #!"c:/perl_dir/bin?"
>
> HTH
>
> kram
>
> Paul Gregor <peej_79@yahoo.com> wrote in message
> news:dmHS2.47$QO.1320@nswpull.telstra.net...
> >
> > Radiac <kenny@larkrise.force9.co.uk> wrote in message
> > news:EebN2.1313$54.1191@wards...
> > > I use tinyweb as my web server. it is literally tiny - less than 100k
> > iirc.
> > > I point that in the direction of a directory holding my website. in
> there
> > i
> > > have a directory called cgi-bin. Having installed perl v5 and
associated
> > .pl
> > > files with perl.exe, all i have to do is go to, for eg,
> > > http://127.0.0.1/cgi-bin/script.pl in ie. very simple.
> > >
> > >
> > I am running the same setup with TinyWeb and Perl v5. Every time I got
to
> > execute my pearl script I get I "document contains no data" error on the
> > other PC on my 2 PC Win95 LAN. The script that I am using is to search a
> > text file. I got it from http://www.technotrade.com/cgi/search.html
> > Do I need to change the usr/local/bin line?, or doesn't that matter
> because
> > Perl v5 has associated with .pl extensions.
> >
> > Any help on this would be greatly appreciated
> >
> > Paul Gregor
> >
> >
>
>




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

Date: Sun, 25 Apr 1999 12:04:45 +0100
From: "Kram" <kram@techie.com>
Subject: Re: Running CGI scripts OFFLINE
Message-Id: <iCCU2.752$Nt.686@stones>

hi troy

yep!

kram

Troy Knight <tk@toilets.freeserve.co.uk> wrote in message
news:7fuq6d$54h$1@news8.svr.pol.co.uk...
> wait a miuntem are you lot talking about running perl scripts OFFLINE? on
> your computer?  How cool is that, not having to pay hundreds of $/# to
test
> out the scripts.  I dont suppose I could do it on my win 98 machine could
> I???
>
> Kram <kram@techie.com> wrote in message news:pLMS2.1409$_3.801@stones...
> > hi paul
> > a cheat? good way to setup perl is to install but use root dir c:\usr
not
> > c:\perl
> > that way you get c:/usr/bin etc so sherbang #!/usr/bin/perl is left
alone.
> > and i dont associate .pl ! makes it eaiser to edit them with "NOTEPAD"
> > that might upset some people.
> > or for local testing change sherbang to #!"c:/perl_dir/bin?"
> >
> > HTH
> >
> > kram
> >
> > Paul Gregor <peej_79@yahoo.com> wrote in message
> > news:dmHS2.47$QO.1320@nswpull.telstra.net...
> > >
> > > Radiac <kenny@larkrise.force9.co.uk> wrote in message
> > > news:EebN2.1313$54.1191@wards...
> > > > I use tinyweb as my web server. it is literally tiny - less than
100k
> > > iirc.
> > > > I point that in the direction of a directory holding my website. in
> > there
> > > i
> > > > have a directory called cgi-bin. Having installed perl v5 and
> associated
> > > .pl
> > > > files with perl.exe, all i have to do is go to, for eg,
> > > > http://127.0.0.1/cgi-bin/script.pl in ie. very simple.
> > > >
> > > >
> > > I am running the same setup with TinyWeb and Perl v5. Every time I got
> to
> > > execute my pearl script I get I "document contains no data" error on
the
> > > other PC on my 2 PC Win95 LAN. The script that I am using is to search
a
> > > text file. I got it from http://www.technotrade.com/cgi/search.html
> > > Do I need to change the usr/local/bin line?, or doesn't that matter
> > because
> > > Perl v5 has associated with .pl extensions.
> > >
> > > Any help on this would be greatly appreciated
> > >
> > > Paul Gregor
> > >
> > >
> >
> >
>
>




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

Date: Sun, 25 Apr 1999 08:08:55 +0300
From: cederstrom@kolumbus.REMOVE_THIS.fi (Juho Cederstrom)
Subject: Re: SSI calls
Message-Id: <slrn7i58r7.ec.cederstrom@vortex.cede.net>

On Sat, 24 Apr 1999 02:49:51 GMT, 
Brad Beiter <thespaceport@my-dejanews.com> wrote:
> How can I call an html document from another server to be inserted into my
> html doc?

If you'll just have to do it with Perl, you can use something like
this:

`/usr/bin/lynx -source http://www.foo.bar/this/is/the/url`

But you must of course have Lynx installed on your system.

(Well, seriously, I don't think this helps you. But this newsgroup
is made for perl stuff, not for SSI)

-- 
# This is a Perl-script which will display juhoc's email address
$_  = "ohuj s'ciameda lserdsi sdec tsreAmorlokTubmuTODsfi";
s/(.)(.)(.)(.)/$4$3$2$1/g;s/AT/\@/;s/DOT/\./;print $_."\n";




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

Date: Sun, 25 Apr 1999 09:38:03 -0500
From: William Brogden <wbrogden@bga.com>
Subject: Re: TCP/IP beginner
Message-Id: <372328CB.26716D43@bga.com>

Michel Dalle wrote:
> 
> In article <7fsple$ctn$1@nntp1.atl.mindspring.net>, "michael" <support@inkfarm.com> wrote:
> >I hope I am asking this correctly:
> >How can I make a perl program "listen" and "write" to TCP/IP?
> >
> >-Michael Herder
> 
> By using "listen" and "write", obviously :-)
> 
> Well, you may want to add some "socket", "bind", "accept", "read" and "close"
> to that. Or use some variants, like "print SOCKET" and "<SOCKET>".
> 
> Try reading perlipc,

I too am trying to get Perl to communicate with sockets. When I read the
supplied documentation I keep running into descriptions of various flags
and
constants - nowhere do I find what these constants mean, what the
alternatives
are, what the defaults are, etc. - Could some kind soul direct me to
REAL
documentation....

Thanks..   WBB


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

Date: Sun, 25 Apr 1999 12:57:43 GMT
From: raj1d@my-dejanews.com
Subject: web automation question
Message-Id: <7fv3g7$36g$1@nnrp1.dejanews.com>

Hi:

I am looking to write a program, that will connect to a secure web site,
supply the login and password, drill down couple of pages, and download
a particular page, that will let me know if a particular program has
completed or not.

I looked at lwp-request, lwp-mirror etc, but was not able to proceed
further.

Any pointers, will be appreciated.

TIA

Raj

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


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

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


Administrivia:

Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing. 

]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body.  Majordomo will then send you instructions on how to confirm your
]subscription.  This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.

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.misc (and this Digest), send your
article to perl-users@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.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

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 V8 Issue 5478
**************************************

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