[18428] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 596 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Mar 30 14:05:52 2001

Date: Fri, 30 Mar 2001 11:05:14 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <985979113-v10-i596@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Fri, 30 Mar 2001     Volume: 10 Number: 596

Today's topics:
        - Looking for this type of TALKBACK user feedback scrip <vemba72@hotmail.com>
    Re: - Looking for this type of TALKBACK user feedback s (Mogga)
    Re: - Looking for this type of TALKBACK user feedback s <blah@blah.com>
    Re: - Looking for this type of TALKBACK user feedback s (Mogga)
    Re: @ references in $ values (Anno Siegel)
    Re: @ references in $ values nobull@mail.com
    Re: add lines from logfile <uri@sysarch.com>
        Data::Dumper (Anno Siegel)
    Re: Data::Dumper <uri@sysarch.com>
    Re: Finding the amount of hours since a recorded date. <taboo@comcen.com.au>
    Re: Finding the amount of hours since a recorded date. nobull@mail.com
        fork on nt (Brandon Metcalf)
    Re: fork on nt (Brandon Metcalf)
    Re: Funny behavior? (Tad McClellan)
    Re: hide the source for my Perl program (I read the faq <gtoomey@usa.net>
    Re: hide the source for my Perl program (I read the faq <xavier@cpnicore.com>
    Re: hide the source for my Perl program (I read the faq <ubl@schaffhausen.de>
        How to create " Who is OnLine " page ? ("Support")
    Re: How to post to a newsgroup from a script? <waverley2000@hotmail.com>
    Re: How to post to a newsgroup from a script? (Jon Bell)
    Re: How to post to a newsgroup from a script? (Jon Bell)
    Re: LWP::Simple  problem news-no-spam-group@home.com
    Re: Pointing the browser at a web page <s.warhurst@rl.ac.uk>
    Re: Pointing the browser at a web page <s.warhurst@rl.ac.uk>
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: Fri, 30 Mar 2001 13:05:50 -0500
From: "Jon" <vemba72@hotmail.com>
Subject: - Looking for this type of TALKBACK user feedback script...
Message-Id: <SW3x6.3044$Eg1.505319@wagner.videotron.net>

Looking for a Talkback-type script that will do exactly THIS :

http://rds.ca/canadien/chroniques/HOCKEYLNHCAN3AAEC7FC.html

I've looked EVERYWHERE.  The closest thing I've found was Wayoftheweb.com's
version of a talkback script, but it doesn't function the same way as this
one (see link) does.  Or, if it does, it's really explained poorly.

I used to think "Talkback" was the name of the script I was looking for but
I believe it's become a qualifying term used to describe all
article-specific user feedback scripts.

Anyhow, if you can help, it would be most appreciated...

jon







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

Date: Fri, 30 Mar 2001 18:15:13 GMT
From: mogga@mogga.com (Mogga)
Subject: Re: - Looking for this type of TALKBACK user feedback script...
Message-Id: <3ac4cd25.12181984@news.freeserve.net>

On Fri, 30 Mar 2001 13:05:50 -0500, "Jon" <vemba72@hotmail.com> wrote:

>Looking for a Talkback-type script that will do exactly THIS :
>
>http://rds.ca/canadien/chroniques/HOCKEYLNHCAN3AAEC7FC.html
>
>I've looked EVERYWHERE.  The closest thing I've found was Wayoftheweb.com's
>version of a talkback script, but it doesn't function the same way as this
>one (see link) does.  Or, if it does, it's really explained poorly.
>
>I used to think "Talkback" was the name of the script I was looking for but
>I believe it's become a qualifying term used to describe all
>article-specific user feedback scripts.
>
>Anyhow, if you can help, it would be most appreciated...
>
>

Email the site owners.
-- 
http://www.htmlcook.com     
html as simple as beans on toast
http://www.searchenginescandal.com
http://website.lineone.net/~diane_norton/indiary.htm


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

Date: Fri, 30 Mar 2001 19:38:57 +0100
From: "Phil Hayz" <blah@blah.com>
Subject: Re: - Looking for this type of TALKBACK user feedback script...
Message-Id: <Hn4x6.4126$MZ2.754010@news2-win.server.ntlworld.com>

"Mogga" <mogga@mogga.com> wrote the following drivel:-
>
> On Fri, 30 Mar 2001 13:05:50 -0500, "Jon" <vemba72@hotmail.com> wrote:
>
> >Looking for a Talkback-type script that will do exactly THIS :
> >
> >http://rds.ca/canadien/chroniques/HOCKEYLNHCAN3AAEC7FC.html
> >
> <snip>
> >
>
> Email the site owners.
> --

I told him to do that when he asked exactly the same question about two or
three weeks ago. Obviously he took no notice.

--
Phil Hayz
http://allmyfaqs.com/ - FAQ's
http://www.w3schools.com/ - Web building tutorials
http://members.home.net/krobb7/quoting.html - Please, FFS, bottom post




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

Date: Fri, 30 Mar 2001 18:56:49 GMT
From: mogga@mogga.com (Mogga)
Subject: Re: - Looking for this type of TALKBACK user feedback script...
Message-Id: <3ac4d6d2.14659325@news.freeserve.net>

On Fri, 30 Mar 2001 19:38:57 +0100, "Phil Hayz" <blah@blah.com> wrote:


>>
>> Email the site owners.
>> --
>
>I told him to do that when he asked exactly the same question about two or
>three weeks ago. Obviously he took no notice.
>

Ohhhhhhhhh why doesn't that surprise me?


-- 
http://www.htmlcook.com     
html as simple as beans on toast
http://www.searchenginescandal.com
http://website.lineone.net/~diane_norton/indiary.htm


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

Date: 30 Mar 2001 16:28:21 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: @ references in $ values
Message-Id: <9a2c75$54n$1@mamenchi.zrz.TU-Berlin.DE>

According to SAM <stuart@fred.com>:
> Hi
> 
> Thanks to all that reply
> I've been looking high and low for an answer to this problem but as its a
> syntax problem and not a code related problem I have been unable to find any
> answers.
> 
> Problem:
> 
> I have an initial function that returns a scalar an array and a hash into a
> variable @m say. I can access all of the values I require however I cannot
> find the length of the array as it is contained in the scalar $m[1].
> 
> I thought it would be something like $#$m[1] but I get a error.

The $#-construct doesn't give you the length of an array.  It is
the index of the last element of the array, which is one less than
the length.  Provided, that is, ... no, I won't go there.

Your question is one of a class of problems that all go like this:

I know how to do X with a hash (array), but now I have a reference to
a hash (array).  How do I do X with the underlying object?

The answer is actually very simple: Let %name (or @name) be your
hash (array).  Doing X means writing down an expression where "name"
occurs somewhere.  Now, if "ref" is any expression that returns a
reference to your type of object, put "ref" in braces and substitute
that for "name".  That will perform the desired action on the
referenced object.

It may turn out that the braces aren't needed in some cases, and in
other cases there may be a more popular way to write the same thing.
But as given above, the recipe always works.  Let's try an example
or two:

Let's say, X (the problem) is "get the $i'th element of an array".
You know how to do this with an ordinary array @array: It's $array[ $i].
Now let $aref be a reference to an array. The recipe says: Replace
"array" in the known answer with "{$aref}", which yields ${$aref}[$i].
This is indeed a valid way to write $aref->[$i].  Actually, it's the
basic way, the arrow is syntactic sugar.  The braces are optional in
this case too, but they don't hurt.

This also works when the array reference isn't a simple variable
but a more complex expression, like $href->{ foo( $x)}.  Wrap it up
in a pair of additional braces and insert it for "name" to get
${$href->{ foo( $x)}}[ $i].  And here the additional braces are not
optional.

The same recipe works for slices of arrays or hashes, for putting
the array behind an reference into scalar context (to get its length),
and for your own question: How do I do the equivalent of $#name to
an array ref $m[1].  The answer is, replace "name" by {$m[1]}, yielding
$#{$m[1]}.

Anno


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

Date: 30 Mar 2001 17:48:56 +0100
From: nobull@mail.com
Subject: Re: @ references in $ values
Message-Id: <u91yrfkxs7.fsf@wcl-l.bham.ac.uk>

"SAM" <stuart@fred.com> writes:

> I've been looking high and low for an answer to this problem

Really?  I found the answer in what I would have thought would be the
obvious place.

> I have an initial function that returns a scalar an array and a hash into a
> variable @m say. I can access all of the values I require however I cannot
> find the length of the array as it is contained in the scalar $m[1].
> 
> I thought it would be something like $#$m[1] but I get a error.
> 
> Any suggestions

<FISH> $#{$m[1]} </FISH>

The syntax for using references is documented in
perlref/"Using References"

       1.  Anywhere you'd put an identifier (or chain of
           identifiers) as part of a variable or subroutine name,
           you can replace the identifier with a simple scalar
           variable containing a reference of the correct type:

  [ No good here, $m[1] is a non-simple scalar ]

       2.  Anywhere you'd put an identifier (or chain of
           identifiers) as part of a variable or subroutine name,
           you can replace the identifier with a BLOCK returning
           a reference of the correct type.

    [ snip ]

                          ...the BLOCK can contain any arbitrary
           expression, in particular, subscripted expressions:

               &{ $dispatch{$index} }(1,2,3);      # call correct routine


> I know I could have put   ($a, @b, %c) = init(); 

I do not understand the relevance of that statement.   BTW: that
always sets %c to empty.

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\


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

Date: Fri, 30 Mar 2001 18:35:33 GMT
From: Uri Guttman <uri@sysarch.com>
Subject: Re: add lines from logfile
Message-Id: <x7y9tnw1e4.fsf@home.sysarch.com>

>>>>> "FB" == Ferry Bolhar <bol@adv.magwien.gv.at> writes:

  >> 192.168.0.1 53  10
  >> 192.168.1.2 21  150

  FB> ($addr,$port,$kbytes) = split /,/;

hmm, i don't see any commas in that input.

uri

-- 
Uri Guttman  ---------  uri@sysarch.com  ----------  http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page  -----------  http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net  ----------  http://www.northernlight.com


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

Date: 30 Mar 2001 17:21:06 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Data::Dumper
Message-Id: <9a2fa2$71e$1@mamenchi.zrz.TU-Berlin.DE>

I find that Data::Dumper doesn't do what I expect:

    my $x = [ ( [] ) x 2 ];

This is an array ref containing two references to the same (empty)
array.  If I understand rightly,

    $y = eval Dumper( $x);

should reproduce this structure by creating a new empty array and
placing two pointers to it in the outer array.  But what Dumper
gives me is an array of one arrayref and one undefined value.
The code in Dumper( $x) looks like this:

    $VAR1 = [
              [],
              $VAR1->[0]
            ];


It makes a valiant attempt to get whatever is in $VAR1->[0] into
$VAR1->[1], but apparently fails.  I'm not sure how a recursive
literal like that is supposed to work, but this one doesn't to do
what Dumper seems to expect.

I hesitate to blow the bug whistle on a popular standard module.
What am I missing?

Anno


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

Date: Fri, 30 Mar 2001 18:51:16 GMT
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Data::Dumper
Message-Id: <x7u24bw0nv.fsf@home.sysarch.com>

>>>>> "AS" == Anno Siegel <anno4000@lublin.zrz.tu-berlin.de> writes:

  AS> I find that Data::Dumper doesn't do what I expect:
  AS>     my $x = [ ( [] ) x 2 ];

  AS>     $y = eval Dumper( $x);

  AS>     $VAR1 = [
  AS>               [],
  AS>               $VAR1->[0]
  AS>             ];

set this global before you call Dumper

$Data::Dumper::Purity = 1 ;

you now will get:

$VAR1 = [
          [],
          []
        ];
$VAR1->[1] = $VAR1->[0];

which is what you wanted.

uri

-- 
Uri Guttman  ---------  uri@sysarch.com  ----------  http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page  -----------  http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net  ----------  http://www.northernlight.com


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

Date: Sat, 31 Mar 2001 00:55:54 +1000
From: "Kiel Stirling" <taboo@comcen.com.au>
Subject: Re: Finding the amount of hours since a recorded date.
Message-Id: <3ac49d08@nexus.comcen.com.au>

Josef Moellers <josef.moellers@fujitsu-siemens.com> wrote in message
news:3AC49203.D812DE16@fujitsu-siemens.com...

>You might want to look at the POSIX module and the mktime function
>therein.

>Josef
>--
>Josef Möllers (Pinguinpfleger bei FSC)
>If failure had no penalty success would not be a prize
>-- T.  Pratchett

Thanks but have since found Data::Calc

Thanks again,

Kiel Stirling




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

Date: 30 Mar 2001 17:55:49 +0100
From: nobull@mail.com
Subject: Re: Finding the amount of hours since a recorded date.
Message-Id: <u9zoe3jiwa.fsf@wcl-l.bham.ac.uk>

"Kiel Stirling " <taboo@comcen.com.au> writes:
 
> Anyone know of a easy way of finding the amount of hours that 
> have passed since a recorded date?

I know you've now discovered Date::Calc but can a point out...

FAQ: "How can I compare two dates and find the difference?

The idea behind the FAQ is that you should read it _before_ you post.

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\


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

Date: 30 Mar 2001 17:50:10 GMT
From: bmetcalf@baynetworks.com (Brandon Metcalf)
Subject: fork on nt
Message-Id: <9a2h0i$e78$1@nrchh45.us.nortel.com>

So, I guess fork isn't implemented so well on nt.  For example, on unix
the following returns control to the caller immediately while the sleep
process runs in the background.  On winblows nt, control doesn't return
to the caller until after the sleep process terminates.

#!/bin/perl -w

use strict;

if (fork) {
   exit 0;
} else {
   system "sleep 15";
}

__END__

Does anyone have any suggestions for achieving this on nt?  On nt, I'm
using ActiveState Perl 5.6.0 build 623.

Thanks,
Brandon


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

Date: 30 Mar 2001 18:50:10 GMT
From: bmetcalf@baynetworks.com (Brandon Metcalf)
Subject: Re: fork on nt
Message-Id: <9a2kh2$k5b$1@nrchh45.us.nortel.com>

bmetcalf@baynetworks.com writes:

 > So, I guess fork isn't implemented so well on nt.  For example, on unix
 > the following returns control to the caller immediately while the sleep
 > process runs in the background.  On winblows nt, control doesn't return
 > to the caller until after the sleep process terminates.
 > 
 > #!/bin/perl -w
 > 
 > use strict;
 > 
 > if (fork) {
 >    exit 0;
 > } else {
 >    system "sleep 15";
 > }
 > 
 > __END__
 > 
 > Does anyone have any suggestions for achieving this on nt?  On nt, I'm
 > using ActiveState Perl 5.6.0 build 623.

I found Win32::Process.  It looks like this will do the trick.  If
anyone knows of other alternatives, please let me know.

Brandon


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

Date: Fri, 30 Mar 2001 10:27:10 -0500
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: Funny behavior?
Message-Id: <slrn9c99ee.o1j.tadmc@tadmc26.august.net>


[ emailed and posted ]


Philip Lees <pjlees@ics.forthcomingevents.gr> wrote:
>On Fri, 30 Mar 2001 06:50:16 -0500, tadmc@augustmail.com (Tad
>McClellan) wrote:
>
>>Operator error is not the same as a broken tool.
>>
>>   perldoc -q '\bhere'
>
>No documentation for perl FAQ keyword `'\bhere'' found
>
>However, I find that
>
>perldoc -q "\bhere"
>
>produces the desired result.


Yes, different shells have different syntax.


>But how is someone new to Perl supposed to figure that out? 


It does not have anything to do with Perl.

If you were trying to quote arguments to a program with a name
other than "perl" the rules (syntax) would be the same.

Someone who does not know how to quote command line arguments in
their shell (or command interpreter) finds out in some place
about shells.


>Is there a
>FAQ for how to use the FAQ?


Yes as a matter of fact, there is  :-)

Word wrapped for posting:

      http://www.xray.mpe.mpg.de/cgi-bin/extract-mbox/perl5-porters/
      2000-05?25048%2E957207786%40chthon


>As I said elswhere in the thread I suppose this may be an OS-specific
                                                           ^^^^^^^^^^^
>problem. 


Shell-specific actually.

A Google search seems to show that there is a 'bash' for Windows,
should you want to be able to cut/paste Unix-flavor command lines
on Windows without adjusting for the differing syntax between
the shells.


>I refer to the docs all the time and find them generally excellent. I
>use the HTML version, simply because I find that format easier to
>read, and I put up with the absence of a search tool, 
                             ^^^^^^^^^^^^^^^^^^^^^^^^

What are you referring to there?

You cannot easily search the docs on your platform?

Windows does not have a grep-alike?

Write one in Perl then:

   perl -ne "print qq($ARGV: $_) if /\bhere/i" *.pod

(UNTESTED 'cause I don't have Windows)

Or go get a more feature laden version from the Perl Power Tools project:

   http://language.perl.com/ppt/


>now that I know
>how to find my way around.


The most important part (how to word search multiple files) is not
Perl-specific.

Some operating systems do seem to make operating the system cumbersome :-)


>When I was starting out with Perl about a year ago, though, I found it
>incredibly difficult to find what I wanted, mostly because I often
>didn't really know what I was looking for, like the OP in this case.


Yep, that's to be expected.

I, personally, only invoke the "you should have checked the FAQ first"
mantra when the OP has used a search term in their post that leads
to the answer, as that indicates to me that they did not even attempt
a FAQ search.


>I thought that Chris' advice was unlikely to be of any help to the OP,


Just knowing that there is an applicable FAQ is helpful even if
the pointer to it does not bring it up on your screen for you.

You just use some other method of finding it.


>and I still think that. 


I don't. Of course the search term could have been more carefully
chosen, but spending minimal brain cycles on FAQs is all you
can reasonably expect.


>I'm not getting at Chris personally - he's one
>of the most helpful contributors to this group. It's just that in this
>case the knee jerk FAQ reaction has led to a shot in the foot.


No, it led to the answer to the question. Scrolling through a few
screens is much cheaper than bothering hundreds of people around
the world.


>(If you want to respond to this, please copy to my e-mail as it's the
>end of my working day and I won't be reading the group again until
>Monday.


OK.


-- 
    Tad McClellan                          SGML consulting
    tadmc@augustmail.com                   Perl programming
    Fort Worth, Texas


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

Date: Sat, 31 Mar 2001 00:13:20 +1000
From: "Gregory Toomey" <gtoomey@usa.net>
Subject: Re: hide the source for my Perl program (I read the faq but...)
Message-Id: <oj0x6.6138$45.34864@newsfeeds.bigpond.com>

If you use Apache, you can restrict the files that can be read by a browser.
Apache still knows taht they should be run as Perl.
My ISP set up .htaccess as:

# -FrontPage-
Options ExecCGI
DirectoryIndex cgi-bin/home.cgi

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*


gtoomey
-----------
"Ðyl@ñ" <stingpd@tiscalinet.it> wrote in message
news:9a1vvc$no0$1@fe1.cs.interbusiness.it...
> I want to make a cgi for a web site, and I need to hide the source code,
so
> I decided to use ''source filter'' (faq number 3) but the problem is that
> the file that crypts the source code needs to stay in the same dir where
the
> code that I want to hide is. So this filter is not good for me....
> what else can i do, where can I hide the module that makes the encrypt?
>
>
>
>




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

Date: Fri, 30 Mar 2001 09:59:18 -0500
From: xavier <xavier@cpnicore.com>
Subject: Re: hide the source for my Perl program (I read the faq but...)
Message-Id: <3AC49F46.7886EFC1@cpnicore.com>

"Ðyl@ñ" wrote:

> I want to make a cgi for a web site, and I need to hide the source code, so
> I decided to use ''source filter'' (faq number 3) but the problem is that
> the file that crypts the source code needs to stay in the same dir where the
> code that I want to hide is. So this filter is not good for me....
> what else can i do, where can I hide the module that makes the encrypt?

I heard that programs to mangle your perl script exist....
Does someone know where we could found it ?

It was a program to remove all the comments, put every thing on one line,
and change the names of variables and functions...

bye
 x




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

Date: Fri, 30 Mar 2001 19:13:25 +0100
From: Malte Ubl <ubl@schaffhausen.de>
Subject: Re: hide the source for my Perl program (I read the faq but...)
Message-Id: <3AC4CCC5.3F681499@schaffhausen.de>

"Ðyl@ñ" schrieb:
> 
> I want to make a cgi for a web site, and I need to hide the source code, so
> I decided to use ''source filter'' (faq number 3) but the problem is that
> the file that crypts the source code needs to stay in the same dir where the
> code that I want to hide is. So this filter is not good for me....
> what else can i do, where can I hide the module that makes the encrypt?

Why would you want to do that? Probably for security reasons...then continue
reading the FAQ: "If your program does insecure things, and relies on
people 
not knowing how to exploit those insecurities, it is not secure. It is
often 
possible for someone to determine the insecure things and exploit them
without 
viewing the source. Security through obscurity, the name for hiding your
bugs 
instead of fixing them, is little security indeed. "

->malte


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

Date: Fri, 30 Mar 2001 18:12:48 +0000 (UTC)
From: kwakeb@arabicteam.com ("Support")
Subject: How to create " Who is OnLine " page ?
Message-Id: <000701c0b943$70d30980$5d0066d4@computer2000>

åÐå ÑÓÇáÉ ãÊÚÏÏÉ ÇáÃÌÒÇÁ Ýí ÊäÓíÞ MIME.

------=_NextPart_000_0004_01C0B95C.8E80A820
Content-Type: text/plain;
	charset="windows-1256"
Content-Transfer-Encoding: quoted-printable

Hi
I created a small script that need a username and password
but I need a Page to tell Who is online from the users ?
can I do this by cookies , and how ?
Regards
Perl Lover

------=_NextPart_000_0004_01C0B95C.8E80A820
Content-Type: text/html;
	charset="windows-1256"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML dir=3Dltr>
<HEAD>

<META content=3D"text/html; charset=3Dwindows-1256" =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.37"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>Hi</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I created a small script that need a =
username and=20
password</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>but I need a Page to tell Who is online =
from the=20
users ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>can I do this by cookies , and how =
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Regards</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Perl Lover</FONT></DIV></BODY></HTML>

------=_NextPart_000_0004_01C0B95C.8E80A820--


-- 
Posted from IDENT:qmailr@aux-209-217-51-56.oklahoma.net [209.217.51.56] 
via Mailgate.ORG Server - http://www.Mailgate.ORG


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

Date: Fri, 30 Mar 2001 16:14:14 +0100
From: "Chris Thompson" <waverley2000@hotmail.com>
Subject: Re: How to post to a newsgroup from a script?
Message-Id: <985965194.15350.0.nnrp-13.c1ed3545@news.demon.co.uk>

Ilmari Karonen <iltzu@sci.invalid> wrote in message
news:985705108.4417@itz.pp.sci.fi...
> And, as the name says, you can put multiple group names on that header
> line, separated by commas.  Doing it that way saves Usenet resources,
> and incidentally makes it less likely for your account to be closed by
> your ISP for excessive multiposting, something very much frowned upon.

Thanks for your assistance.  I've changed the script now so that posting to
only a single newsgroup is possible.

> Still, the people who said you shouldn't be doing this at all are most
> likely right.  Not just because it isn't acceptable in most newsgroups,
> but also because the groups where it *is* allowed are often wastelands
> full of job ads and with few if any actual readers.

Perhaps, though I have on occasion used those groups myself and found them
of value. Whilst I share people's loathing of spam, I can't see that there
is a great deal of difference between automatically submitting job
information to an appropriate newsgroup and submitting the same information
typed out by hand (apart from the fact that the latter takes 5 minutes
longer than the former).

Kind regards,
Chris Thompson





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

Date: Fri, 30 Mar 2001 15:51:35 GMT
From: jtbell@presby.edu (Jon Bell)
Subject: Re: How to post to a newsgroup from a script?
Message-Id: <GB0pDz.1DJ@presby.edu>

In article <GB0p2n.yA@presby.edu>, Jon Bell <jtbell@presby.edu> wrote:
>
>How the postings were made makes no difference.  What counts is how many
>duplicates there, reduced by a factor that depends on the amount of
                 ^
                 are

>crossposting.  I strongly recommend that you read the "Current Usenet spam
>thresholds and guidelines" at
>
>  <http://www.uiuc.edu/~tskirvin/faqs/spam.html>
>
>and note carefully the definition of the Breidbart Index (BI).

-- 
Jon Bell <jtbell@presby.edu>                        Presbyterian College
Dept. of Physics and Computer Science        Clinton, South Carolina USA


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

Date: Fri, 30 Mar 2001 15:44:47 GMT
From: jtbell@presby.edu (Jon Bell)
Subject: Re: How to post to a newsgroup from a script?
Message-Id: <GB0p2n.yA@presby.edu>

In article <985965194.15350.0.nnrp-13.c1ed3545@news.demon.co.uk>,
Chris Thompson <waverley2000@hotmail.com> wrote:
> [...] Whilst I share people's loathing of spam, I can't see that there
>is a great deal of difference between automatically submitting job
>information to an appropriate newsgroup and submitting the same information
>typed out by hand (apart from the fact that the latter takes 5 minutes
>longer than the former).

How the postings were made makes no difference.  What counts is how many
duplicates there, reduced by a factor that depends on the amount of
crossposting.  I strongly recommend that you read the "Current Usenet spam
thresholds and guidelines" at

  <http://www.uiuc.edu/~tskirvin/faqs/spam.html>

and note carefully the definition of the Breidbart Index (BI).

-- 
Jon Bell <jtbell@presby.edu>                        Presbyterian College
Dept. of Physics and Computer Science        Clinton, South Carolina USA

   



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

Date: Fri, 30 Mar 2001 18:37:03 GMT
From: news-no-spam-group@home.com
Subject: Re: LWP::Simple  problem
Message-Id: <jn4x6.180625$t67.2915767@news1.rdc1.il.home.com>



Hi,

I need to install the LWP:: Simple  modules for same below - I have NO CLUE 
how to do this. My success in trying to find a step-by-step has not been so 
good.  I know there's some untar then some make command... Any assistance 
would greatly be appreciated.

Using RH6.2

Thank you.

In article <Clir6.2763$54.2928@www.newsranger.com>, grip62501@yahoo.com wrote:
>Hi.
>
>I have Perl 5.005_03 built for i386-linux
>
>I recently installed LWP module from CPAN.I did not get any warnings while
>installing the Module.
>
>I tried the following script
>
>-------------------------------------------
>#!/usr/bin/perl
>
>use LWP::Simple;
>use LWP::Debug qw(+ -conns);
>
>$content=get("http://www.washingtonpost.com");
>
>print $content
>
>--------------------------------------------
>
>and I Got the following message
>
>
>
>--------------------------------------------
>
>
>Your vendor has not defined Socket macro AF_INET, used at
>/usr/lib/perl5/5.00503/i386-linux/IO/Socket.pm line 385
>--------------------------------------------
>
>I assume  there is a compatability problem wiht the Module and OS
>
>Is there any way by which I can rectify/re-install and get this module working?
>
>ANy help will be appreciated 
>THanks in advance
>
>regards
>CM
>
>
>
>


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

Date: Fri, 30 Mar 2001 15:11:32 +0100
From: "S Warhurst" <s.warhurst@rl.ac.uk>
Subject: Re: Pointing the browser at a web page
Message-Id: <9a246t$1fpu@newton.cc.rl.ac.uk>

Hi

That comes up with the message:

Status: 302 Moved Location: http://www.somewhere.com

in the browser windows rather than actually going to the site.

Spencer

***********************************
"Mark Kuin" <mkuin@globalrangers.com> wrote in message
news:99vht9$536$1@news1.xs4all.nl...
> use CGI;
> my $query = new CGI;
> print $query->redirect('http://www.somewhere.com');
> exit;
>
> "S Warhurst" <s.warhurst@rl.ac.uk> wrote in message
> news:99vh2u$132e@newton.cc.rl.ac.uk...
> > Hi
> >
> > In javascript, if you want to tell the browser to go to a specific web
> page,
> > you would use the line:
> >
> > location.href='http://www.somewhere.com';
> >
> > What is the equivalent command in Perl?
> >
> > Thanks
> > Spencer
> >
> >
>
>




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

Date: Fri, 30 Mar 2001 15:12:28 +0100
From: "S Warhurst" <s.warhurst@rl.ac.uk>
Subject: Re: Pointing the browser at a web page
Message-Id: <9a248m$l28@newton.cc.rl.ac.uk>

Hi

I don't understand what you mean there. What http transmission would that
be?

Spencer

********************
"Stefan Haller" <hals@babylon.icemark.ch> wrote in message
news:slrn9c6hkt.3r2.hals@babylon.icemark.ch...
> In article <99vh2u$132e@newton.cc.rl.ac.uk>, S Warhurst wrote:
>
> Hi
>
> >In javascript, if you want to tell the browser to go to a specific web
page,
> >you would use the line:
> >
> >location.href='http://www.somewhere.com';
>
> Do a
>
> print "Location: http://www.somewhere.com\n\n"
>
> in the header of your http transmission. (The second \n is to separate the
> header from the actual html file.)
>
> With kind regards
>  Stefan




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

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 V10 Issue 596
**************************************


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