[16659] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 4071 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Aug 20 06:10:47 2000

Date: Sun, 20 Aug 2000 03:10:17 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <966766216-v9-i4071@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Sun, 20 Aug 2000     Volume: 9 Number: 4071

Today's topics:
    Re: Need help of a Perl expert!!! e411@altavista.com
    Re: Need help of a Perl expert!!! <jeff@vpservices.com>
    Re: Need help of a Perl expert!!! <uri@sysarch.com>
    Re: Newbie - print here problem scottfreez@my-deja.com
    Re: Open Multiple Files <gellyfish@gellyfish.com>
    Re: Problem with hash initialization using list <rick.delaney@home.com>
    Re: Search and replace character sections samurai@metallicafan.com
    Re: subject with smtp.pm <g.chapman0749@home.com>
    Re: subject with smtp.pm <danielxx@bart.nl>
    Re: Web Solution Needed - Please respond (Eric Bohlman)
    Re: Were are all the executibles? <dale@emmons.dontspamme.com>
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: Sun, 20 Aug 2000 01:57:38 GMT
From: e411@altavista.com
Subject: Re: Need help of a Perl expert!!!
Message-Id: <5eeups4gl5vth7gdb20b8n0em5tp5bh6un@4ax.com>

wow I can't believe you would type all that out and not offer to help,
just another example of the goofs that provide irrelevant stupid
garbage responses to questions asked in this group. 



, nobull@mail.com wrote:

>"Henri" <hvenetie@casema.net> writes:
>
>> Subject: Need help of a Perl expert!!!
>
>Please check out this helpful information on choosing good subject
>lines. It will be a big help to you in making it more likely that your
>requests will be answered.
>
>    http://www.perl.com/CPAN/authors/Dean_Roehrich/subjects.post
>
>> I start learning Perl but at this moment I don't have enough knowledge to
>> solve the following problem
>
>The two halves of this statement are probably unrelated.
>
>What makes you think that the knowledge you are lacking is Perl
>knowledge?  Could you solve the problem in some other language? 
>
>> Is it possible to check with Perl that if the pc is online he is going to
>> get the information from the pc and when the pc is offline he shows an
>> offline  image.
>
>Actually it's fundametally impossible to detect that a IP host is
>offline execpt by trying to communicate with it and timing-out.  Of
>course if you time-out quickly you never know if it's really off line
>or you've just not waited long enough.
>
>> For instance:
>
>> ping 1.2.3.4
>
>Indeed this is what the ping command does.
>
>There is a Perl module available on CPAN (www.cpan.org) that does
>something similar to the ping command.  Guessing the name is left as
>an exercise for the reader.
>
>I should point out however that while the module does something
>similar to the "ping" command it is not quite identical and it is
>important to read them manual that comes with it. To see the mess that
>you get into if you don't read the manual do a Usent search in this
>group on the name of the module.



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

Date: Sat, 19 Aug 2000 19:33:49 -0700
From: Jeff Zucker <jeff@vpservices.com>
Subject: Re: Need help of a Perl expert!!!
Message-Id: <399F438D.D5C894A9@vpservices.com>

e411@altavista.com wrote:
> 
> nobull@mail.com wrote:
> 
> >"Henri" <hvenetie@casema.net> writes:
> >
[snip] 
>
> wow I can't believe you would type all that out and not offer to help,
> just another example of the goofs that provide irrelevant stupid
> garbage responses to questions asked in this group.

Say what???? Did you even read the response from nobull?  It pointed the
user to the appropriate module and gave some detailed information about
using the module, about dangers in the approach the original poster is
trying, and about where to find further information on the topic.  In
what way is any of that irrelevant?  Speaking of "garbage responses",
exactly what is the value of your message?

-- 
Jeff


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

Date: Sun, 20 Aug 2000 02:45:38 GMT
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Need help of a Perl expert!!!
Message-Id: <x7n1i8veel.fsf@home.sysarch.com>

>>>>> "e" == e411  <e411@altavista.com> writes:

  e> wow I can't believe you would type all that out and not offer to help,
  e> just another example of the goofs that provide irrelevant stupid
  e> garbage responses to questions asked in this group. 

and your helpful comments are where? his comments were accurate and
helpful. you just didn't understand them. 

  e> , nobull@mail.com wrote:

  >> http://www.perl.com/CPAN/authors/Dean_Roehrich/subjects.post

a very valid thing to say for a lousy subject. the OP did not need a
perl expert.

  >> Actually it's fundametally impossible to detect that a IP host is
  >> offline execpt by trying to communicate with it and timing-out.  Of
  >> course if you time-out quickly you never know if it's really off line
  >> or you've just not waited long enough.

accurate and useful. 

  >> There is a Perl module available on CPAN (www.cpan.org) that does
  >> something similar to the ping command.  Guessing the name is left as
  >> an exercise for the reader.

duh! my brane hurts from that puzzler.

  >> I should point out however that while the module does something
  >> similar to the "ping" command it is not quite identical and it is
  >> important to read them manual that comes with it. To see the mess that
  >> you get into if you don't read the manual do a Usent search in this
  >> group on the name of the module.

again accurate and useful. ping.pm is NOT the same as the ping command.

so why are you bitching? because nobull didn't write a free program for
the OP? or because he didn't sucker him with blather like our resident
troll?

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: Sun, 20 Aug 2000 07:48:26 GMT
From: scottfreez@my-deja.com
Subject: Re: Newbie - print here problem
Message-Id: <8no2g8$rk1$1@nnrp1.deja.com>

Nah, I believe the error was caused due to the lack of a carriage
return - Wyzelli, Thanks!! - because it went away as soon as I added
one.

whew...whatta weird error...

scottfreez


In article <slrn8pt42o.4cm.marcel@gandalf.local>,
  marcel@codewerk.com wrote:
> On Thu, 17 Aug 2000 08:44:45 GMT, scottfreez@my-deja.com
> <scottfreez@my-deja.com> wrote:
>
> >print<<FINISH;
> >Content-type: text/html
> >
> >hey there
> >FINISH
> >
> >Can't find string terminator "FINISH" anywhere before EOF at
> >C:\Inetpub\wwwroot\perl\flockansi.pl line 1.
>
> Is the terminator, "FINISH", on a line by itself and starting right at
> the first column, without any white space before it?
>
> --
> Marcel Gr\"unauer - Codewerk plc . . . . . . . . . . .
<http://www.codewerk.com>
> Perl Consulting, Programming, Training, Code review . . .
<marcel@codewerk.com>
> mod_perl, XML solutions - email for consultancy availability
> sub AUTOLOAD{($_=$AUTOLOAD)=~s;^.*::;;;y;_; ;;print}
Just_Another_Perl_Hacker();
>


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


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

Date: 20 Aug 2000 09:49:42 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Open Multiple Files
Message-Id: <8no636$iq7$1@orpheus.gellyfish.com>

On Fri, 18 Aug 2000 13:27:26 GMT Micheal wrote:
> Hi there,
> 
> 
> How would I open two (or more) documents at the same time to save output to
> them?
> 
> I have
> 
> open(OUTPUT, ">$dir/$filename");
> ...
> close OUTPUT;
> 
> 
> 
> which works for one file, but I have tried multiple combinations of this to
> open to files at once...  never works.  Any suggestions appreciated
> 

If you need to write to two files with one print then you might perhaps
want to consider a tied filehandle - look at the perltie and Tie::Handle
manpages for an idea of where to start.

/J\
-- 
yapc::Europe in assocation with the Institute Of Contemporary Arts
   <http://www.yapc.org/Europe/>   <http://www.ica.org.uk>


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

Date: Sun, 20 Aug 2000 03:32:16 GMT
From: Rick Delaney <rick.delaney@home.com>
Subject: Re: Problem with hash initialization using list
Message-Id: <399F5383.1E27DFD4@home.com>


Larry Rosler wrote:
> 
> In article <399EBA72.D8FE82FC@home.com>, rick.delaney@home.com says...
> +
> + Keith Calvert Ivey wrote:
> + >
> + > If it's really lvaluable, shouldn't you be able to do
                                ^^^^^^^^^
> + >
> + >     chomp values %info
> + >
> + > to save another token?
> +
> + I'd think so.
> 
> But you'd be wrong.  

I'd be wrong to think you should be able chomp lvalues in a list?  I
don't think so.

> Experience teaches that testing is better than guessing what Perl will 
> do, especially in the absence of a language definition.

What Perl will do and what it should do are not always the same.

>   Can't modify values in chomp at ...

Yup, that's the message I got when I tested it which prompted me to say
this is a bug.

> 
> +                But if you just want to save tokens you can do
> +
> +     chomp %info;
 
> That this does work -- and the previous attempt doesn't work -- is quite
> surprising.  If the hash is expanded into a list, one would expect the
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
It isn't.

> keys to be chomped also; but they aren't.  So it falls into the usual
> Perl DWIMmery -- useful, ad hoc, and undocumented.
                                       ^^^^^^^^^^^^
Don't worry, that will be part of my bug report too.

-- 
Rick Delaney
rick.delaney@home.com


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

Date: Sun, 20 Aug 2000 00:35:27 -0700
From: samurai@metallicafan.com
Subject: Re: Search and replace character sections
Message-Id: <399F8A3F.20DCA72C@metallicafan.com>

"Godzilla!" wrote:

> Should I want to find "jackandjill@*******.org"
> it is just a matter of a wildcard search for jackandjill at a .org
> site.

    Which .org site?  All eleventy million of them?  You're dreaming.
And what wildcard search would you propose?  More of your clevver perl4
coding?

> If this isn't enough reason, an email address can be found without
> much effort based simply on the logon
> name, especially if a unique logon name. For most logon names sans
> server, you can find a full email
> address within thirty minutes.

    Bullshit.  "Especially if a unique logon name?"  Gimme a break.
What if it isn't "unique?"  webmaster@*****.org.  Who is it?  Here's a
personal one that's guaranteed unique: imninp@********.com .  If you can
find it, I will bow to your greatness.  Good luck.  You have thirty
minutes.

> Don't display email addresses, even a portion, if you truly wish to
> conceal email addresses. I can find a full email address from partial
> information, so can others.

    No you can't, and certainly not if it's that partial.  GFAD, moron.
Stop harassing me.
    ///
--
Spurious account owner since 1983.
Dropper of clues since 1987.




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

Date: Sun, 20 Aug 2000 01:50:24 GMT
From: "Graham Chapman" <g.chapman0749@home.com>
Subject: Re: subject with smtp.pm
Message-Id: <APGn5.82303$c5.1633927@news2.rdc1.on.home.com>

I have one which, using your variables, would look like this:

     $smtp = Net::SMTP->new( $mailhost,
                                              Hello => $sending_host,
                                              Debug => 0
                                            );
     $smtp->mail($users_email);
     $smtp->to($mail);
     $smtp->data();
     $smtp->datasend("To       : $users_name\n");
     $smtp->datasend("From   : $users_email\n");
     $smtp->datasend("Subject: $subject\n");
     $smtp->datasend("\n");
     $smtp->datasend($message);
     $smtp->dataend();
     $smtp->quit;

This seems to work for me......


Daniel van den Oord <danielxx@bart.nl> wrote in message
news:uzyn5.22974$Gd1.143506@Typhoon.bART.nl...
> I'm using NT server and perl 5.6.
> I have written a script sending an email using smtp.pm the script it self
is
> below
> I'm wondering how to send an subject/header with it ?!? hope anybody can
> help ?!?
>
>   $smtp = Net::SMTP->new($mailhost,
>                      Hello => $sending_host,
>                      Debug => 0
>                      );
>   $smtp->mail($users_email);
>   $smtp->to($mail);
>   $smtp->data();
>   $smtp->datasend(<<EOF_MAIL);
>   Senders name    : $users_name
>   Senders email   : $users_email
>   Senders message : $message
> EOF_MAIL
>   $smtp->dataend();
>   $smtp->quit;
>
>
>
>
>




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

Date: Sun, 20 Aug 2000 10:02:56 GMT
From: "Daniel van den Oord" <danielxx@bart.nl>
Subject: Re: subject with smtp.pm
Message-Id: <k1On5.24312$Gd1.146619@Typhoon.bART.nl>

It does work but it doesn;t put the subject in the subject line of the
email....




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

Date: 20 Aug 2000 04:19:50 GMT
From: ebohlman@netcom.com (Eric Bohlman)
Subject: Re: Web Solution Needed - Please respond
Message-Id: <8nnm96$fie$2@slb1.atl.mindspring.net>

chaz (chaznsc@yahoo.com) wrote:
: I host a web site for a local auto dealer who wants to place his
: pre-owned inventory on the web. 

Bad idea.  It's been my experience that when you chop a used car into
pieces small enough to transmit by TCP/IP, it doesn't run very well
afterwards. 

: What I need is an "engine" of sorts that can read data from a text based
: database file. Please send me your input, proposals, etc. I can provide
: more elaboration once we make initial contact.

This group isn't an appropriate place for posting RFPs, and I'm not 
convinced that any Usenet groups are really appropriate for such (the 
*.jobs groups are really for offers of salary+benefits+cubicle positions, 
not one-off projects).  If I were you, I'd visit <URL:http://www.pm.org> 
and find a Perl Mongers group near you, and get in touch with them.  
They're likely to have one or more members who do this sort of thing.



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

Date: Sun, 20 Aug 2000 02:23:04 -0500
From: "Dale Emmons" <dale@emmons.dontspamme.com>
Subject: Re: Were are all the executibles?
Message-Id: <spv1hfi587v145@corp.supernews.com>

> Why is Perl a scripting language?

Why is the moon that large object that orbits the earth?

> Why one can't make executibles (this
> is, *.exe files)?

You can...

> Wouldn't compiling be much more intelligent than
> interpreting? That way anybody could drive a perl program without
> having perl interpreter!

Depends on your definition of intelligent (be carful with that word, you can
easily offend people).
I use perl because it is a scripting language... it makes development much
faster and in many cases easier than compiling code every time I make a
change.

> Thanks for answering!
>
> John S. Brown.
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.




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

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


Administrivia:

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V9 Issue 4071
**************************************


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