[12645] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 54 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Jul 7 11:17:20 1999

Date: Wed, 7 Jul 1999 08:07:37 -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           Wed, 7 Jul 1999     Volume: 9 Number: 54

Today's topics:
        web-based email scripts, help pelase bababozorg@aol.com
    Re: web-based email scripts, help pelase <daniel.vesma@thewebtree.com>
    Re: web-based email scripts, help pelase (Abigail)
    Re: web-based email scripts, help pelase (Alastair)
    Re: web-based email scripts, help pelase <ehpoole@ingress.com>
    Re: web-based email scripts, help pelase (I.J. Garlick)
    Re: web-based email scripts, help pelase (Jim Britain)
    Re: web-based email scripts, help pelase (I.J. Garlick)
    Re: web-based email scripts, help pelase <ehpoole@ingress.com>
        Webpages and Perl-Couple of Questions <cameron_graham@clear.net.nz>
    Re: Webpages and Perl-Couple of Questions (Alastair)
    Re: Webpages and Perl-Couple of Questions (Michel Dalle)
    Re: Webpages and Perl-Couple of Questions <swiftkid@bigfoot.com>
    Re: Webpages and Perl-Couple of Questions (Philip 'Yes, that's my address' Newton)
    Re: Webpages and Perl-Couple of Questions <daniel.vesma@thewebtree.com>
        Website search using regular expression <anonymous@web.remarq.com>
        Weird error message -- ever seen? <rwilliamson@uno.gers.com>
        What is a "Perl Hacker?" <streaking_pyro@my-deja.com>
    Re: What is a "Perl Hacker?" (Abigail)
    Re: What is a "Perl Hacker?" (Reini Urban)
    Re: What is a "Perl Hacker?" (Dave Cross)
    Re: What is a "Perl Hacker?" esalmon@packet.net
    Re: what questions was perl designed to solve? (Abigail)
    Re: what questions was perl designed to solve? (Cameron Laird)
        Whats wrong with this script (=?ISO-8859-1?Q?^=FEmIRC^?=)
    Re: Whats wrong with this script bigcheese@my-deja.com
        Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)

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

Date: Mon, 05 Jul 1999 16:23:33 GMT
From: bababozorg@aol.com
Subject: web-based email scripts, help pelase
Message-Id: <7lqm5s$n05$1@nnrp1.deja.com>

hi
can anyone please tell me if i want to setup a free web-based email
like hotmail or mollymail.com (in a virtual server), do i have to setup
a pop3 for everyne who signs up?
if not what other method is used for giving anyone an free email
address and only a webbaed email program, like hotmail.
if yes please tell me how to setup a pop3 via cgi program. i dont have
exprience in these email things :)
or if you know any free script that setup a pop3 email straight from
the web please tell me, because i search through the web alot but
couldnt find any or probably searched through a wrong things :)
i may be able to write other part of the program, but i dont know what
method is used in these free webbased emails! :)
please help
thanks
hamed


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


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

Date: Mon, 5 Jul 1999 20:21:24 +0100
From: "Daniel Vesma" <daniel.vesma@thewebtree.com>
Subject: Re: web-based email scripts, help pelase
Message-Id: <7lr0vl$q7p$2@gxsn.com>

>i dont have exprience in these email things :)


Then I wouldn't do what you are wanting to do. You need some real experience
first.

>or if you know any free script that setup a pop3 email straight from
>the web please tell me, because i search through the web alot but
>couldnt find any or probably searched through a wrong things :)

The best place to look for Perl scripts is www.cgi-resources.com






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

Date: 5 Jul 1999 16:06:27 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: web-based email scripts, help pelase
Message-Id: <slrn7o27hv.h6v.abigail@alexandra.delanet.com>

bababozorg@aol.com (bababozorg@aol.com) wrote on MMCXXXIV September
MCMXCIII in <URL:news:7lqm5s$n05$1@nnrp1.deja.com>:
// hi
// can anyone please tell me if i want to setup a free web-based email
// like hotmail or mollymail.com (in a virtual server),

No, you don't want to.

//                                                      do i have to setup
// a pop3 for everyne who signs up?

No. Why? If you want to give only pop3 access to the Royal family, then
you give only pop3 access to the Royal family. You only give everyone
pop3 access, if you want to do that.

// if not what other method is used for giving anyone an free email
// address and only a webbaed email program, like hotmail.

UUCP. pop2. IMAP. Email forwarding. And there are more. 

// if yes please tell me how to setup a pop3 via cgi program. i dont have
// exprience in these email things :)

And you want to mimic hotmail? Are you nuts? That's like wanting to 
race the Indy 500 without having any experience using motorized vehicles.

// or if you know any free script that setup a pop3 email straight from
// the web please tell me, because i search through the web alot but
// couldnt find any or probably searched through a wrong things :)
// i may be able to write other part of the program, but i dont know what
// method is used in these free webbased emails! :)

I strongly suggest you forget about. But if you want to go ahead, I
would suggest talking to your sysadmin. Buy her many cases of beer.
Take her out to expensive sushi places; repeatedly. You will need her
help. Lots and lots and lots of her help. Make an appointment with
hotmail. See if you can talk to their developers. See how many people
are working for hotmail to keep things running. Start hiring people,
after all, do will need 24x7 support. Make an appointment with your
bank, and see how much money you can invest.


AND START LEARNING THAT THIS GROUP ISN'T ABOUT MAIL ISSUES.



Abigail
-- 
perl -wle '$, = " "; print grep {(1 x $_) !~ /^(11+)\1+$/} 2 .. shift'


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


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

Date: Tue, 06 Jul 1999 00:02:38 GMT
From: alastair@calliope.demon.co.uk (Alastair)
Subject: Re: web-based email scripts, help pelase
Message-Id: <slrn7o2li3.5p.alastair@calliope.demon.co.uk>

bababozorg@aol.com <bababozorg@aol.com> wrote:
>hi
>can anyone please tell me if i want to setup a free web-based email
>like hotmail or mollymail.com (in a virtual server), do i have to setup
>a pop3 for everyne who signs up?
>if not what other method is used for giving anyone an free email
>address and only a webbaed email program, like hotmail.
>if yes please tell me how to setup a pop3 via cgi program. i dont have
>exprience in these email things :)

Learning Perl is a good start - try ;

http://www.perl.com
http://reference.perl.com
http://reference.perl.com/query.cgi?tutorials

If you want it 'quick', hire a programmer.

-- 

Alastair
work  : alastair@psoft.co.uk
home  : alastair@calliope.demon.co.uk


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

Date: Tue, 06 Jul 1999 01:11:24 -0400
From: "Ethan H. Poole" <ehpoole@ingress.com>
Subject: Re: web-based email scripts, help pelase
Message-Id: <37818FFC.BCF30AF4@ingress.com>

Alastair wrote:
> 
> bababozorg@aol.com <bababozorg@aol.com> wrote:
> >hi
> >can anyone please tell me if i want to setup a free web-based email
> >like hotmail or mollymail.com (in a virtual server), do i have to setup
> 
> If you want it 'quick', hire a programmer.

I'm not sure 'quick' is quite the right term.  We programmers can be very
clever and can often pull off a good bit of black magic and other
interesting tricks, but properly mimicking hotmail in a "quick" manner? 
Just the utilization and resource studies to determine the optimal coding
method(s) and algorithms given the hardware and the number of anticipated
visitors is likely to take some time.  

Remember, when you start writing especially complex code, the first
version is always a beta.  Only then will you realise what initial
assumptions were in error.  The second version typically has only a vague
resemblence to the first work... unless, of course, you were lucky and got
it right the first time but then you may wish to consider the possibility
that you are delusional.

-- 
Ethan H. Poole           ****   BUSINESS   ****
ehpoole@ingress.com      ==Interact2Day, Inc.==
(personal)               http://www.interact2day.com/


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

Date: Tue, 6 Jul 1999 08:00:22 GMT
From: ijg@connect.org.uk (I.J. Garlick)
Subject: Re: web-based email scripts, help pelase
Message-Id: <FEFvKM.Ivt@csc.liv.ac.uk>

In article <37818FFC.BCF30AF4@ingress.com>,
"Ethan H. Poole" <ehpoole@ingress.com> writes:
> Alastair wrote:
>> 
>> bababozorg@aol.com <bababozorg@aol.com> wrote:
> Remember, when you start writing especially complex code, the first
> version is always a beta.  Only then will you realise what initial
> assumptions were in error.  The second version typically has only a vague
> resemblence to the first work... unless, of course, you were lucky and got
> it right the first time but then you may wish to consider the possibility
> that you are delusional.

How true. You also forgot to mention that management can change their
minds half way through. :-(

-- 
Ian J. Garlick
ijg@csc.liv.ac.uk

As long as the answer is right, who cares if the question is wrong?



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

Date: Tue, 06 Jul 1999 09:52:48 GMT
From: jbritain@home.com (Jim Britain)
Subject: Re: web-based email scripts, help pelase
Message-Id: <3781d16d.8488926@news>

On Tue, 6 Jul 1999 08:00:22 GMT, ijg@connect.org.uk (I.J. Garlick)
wrote:

>In article <37818FFC.BCF30AF4@ingress.com>,
>"Ethan H. Poole" <ehpoole@ingress.com> writes:
>> Alastair wrote:
>>> 
>>> bababozorg@aol.com <bababozorg@aol.com> wrote:
>> Remember, when you start writing especially complex code, the first
>> version is always a beta.  Only then will you realise what initial
>> assumptions were in error.  The second version typically has only a vague
>> resemblence to the first work... unless, of course, you were lucky and got
>> it right the first time but then you may wish to consider the possibility
>> that you are delusional.
>
>How true. You also forgot to mention that management can change their
>minds half way through. 

Nah, more like 95% through, and by the way, the due date has been
shortened, so here's some new hires; bring them up to speed so you can
get the stuff out on time.



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

Date: Tue, 6 Jul 1999 13:23:36 GMT
From: ijg@connect.org.uk (I.J. Garlick)
Subject: Re: web-based email scripts, help pelase
Message-Id: <FEGAJC.1x7@csc.liv.ac.uk>

In article <3781d16d.8488926@news>,
jbritain@home.com (Jim Britain) writes:
> On Tue, 6 Jul 1999 08:00:22 GMT, ijg@connect.org.uk (I.J. Garlick)
> wrote:
> Nah, more like 95% through, and by the way, the due date has been
> shortened, so here's some new hires; bring them up to speed so you can
> get the stuff out on time.

I see someone else has been there as well. There is a sort of warm and
comfortable feeling inside, knowing that you are not alone :-) (I am
currently faced with having just lost my last "work experience body" and
am being threatened with yet another new one. They really aren't paying me
enough for this!!!).

-- 
Ian J. Garlick
ijg@csc.liv.ac.uk

As long as the answer is right, who cares if the question is wrong?



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

Date: Tue, 06 Jul 1999 15:17:44 -0400
From: "Ethan H. Poole" <ehpoole@ingress.com>
Subject: Re: web-based email scripts, help pelase
Message-Id: <37825658.7A083108@ingress.com>

[posted and emailed]

I.J. Garlick wrote:
> 
> In article <3781d16d.8488926@news>,
> jbritain@home.com (Jim Britain) writes:
> > On Tue, 6 Jul 1999 08:00:22 GMT, ijg@connect.org.uk (I.J. Garlick)
> > wrote:
> > Nah, more like 95% through, and by the way, the due date has been
> > shortened, so here's some new hires; bring them up to speed so you can
> > get the stuff out on time.
> 
> I see someone else has been there as well. There is a sort of warm and
> comfortable feeling inside, knowing that you are not alone :-) (I am
> currently faced with having just lost my last "work experience body" and
> am being threatened with yet another new one. They really aren't paying me
> enough for this!!!).

Maybe it's time to purchase a copy of "The Mythical Man Month" and
conveniently leave it on a certain someone's desk.

Fortunately, I *am* the management in my case, unfortunately, clients
still tend to change their minds frequently and then wonder why the cost
shot up dramatically, nevermind they issued 12 individual change orders
rather than all 12 requests on one change order (it's damn frustrating
cranking out 12 versions of an application when it all could have been
done in one)... but if a client wants to nickel and dime themselves I'll
give them one polite warning, from then on it's their problem (and credit
history if they don't pay) to deal with.

-- 
Ethan H. Poole           ****   BUSINESS   ****
ehpoole@ingress.com      ==Interact2Day, Inc.==
(personal)               http://www.interact2day.com/


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

Date: Sat, 3 Jul 1999 23:12:44 +1200
From: "Cameron Graham" <cameron_graham@clear.net.nz>
Subject: Webpages and Perl-Couple of Questions
Message-Id: <Hcmf3.125$_r1.4283@news.clear.net.nz>

Ok.
Now, im new to Perl and this question may seem really really dumb but bear
with me please....

I understand that the bit up the top of your browser when you click the
button on a page contains the info going to the script
ie. http://www.blah.com/blah.pl?feck=dooda&bleh=2351353161&foo=harry
     |                     ^                       |^|          ^        |^|
^              |^|       ^       |
                    Address                       1st data               2nd
data            3rd data
                                           Start of info     1st separator
2nd separator

tell me if i have this wrong aye.

my problem is...how does the script actually *get* this data into the
program?

Also, do i need to compile my script before i can use it, or can i just use
*.pl?
Cheers.




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

Date: Sat, 03 Jul 1999 12:07:27 GMT
From: alastair@calliope.demon.co.uk (Alastair)
Subject: Re: Webpages and Perl-Couple of Questions
Message-Id: <slrn7ns2t0.5e.alastair@calliope.demon.co.uk>

Cameron Graham <cameron_graham@clear.net.nz> wrote:
>
>my problem is...how does the script actually *get* this data into the
>program?

You'll want to research the CGI protocol - plenty of web resources around if you
look. If you want to 'do' CGI in Perl, the CGI module will help ;

http://www.genome.wi.mit.edu/~lstein/

>Also, do i need to compile my script before i can use it, or can i just use
>*.pl?

Compile? No.

HTH.

-- 

Alastair
work  : alastair@psoft.co.uk
home  : alastair@calliope.demon.co.uk


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

Date: Sat, 03 Jul 1999 12:30:41 GMT
From: michel.dalle@usa.net (Michel Dalle)
Subject: Re: Webpages and Perl-Couple of Questions
Message-Id: <7lkvns$5h6$1@xenon.inbe.net>

In article <Hcmf3.125$_r1.4283@news.clear.net.nz>, "Cameron Graham" <cameron_graham@clear.net.nz> wrote:
>Ok.
>Now, im new to Perl and this question may seem really really dumb but bear
>with me please....
>
>I understand that the bit up the top of your browser when you click the
>button on a page contains the info going to the script
>ie. http://www.blah.com/blah.pl?feck=dooda&bleh=2351353161&foo=harry
[snip]
>my problem is...how does the script actually *get* this data into the
>program?

Well, I presume you're talking about a script running on a webserver ?
The webserver will receive this HTTP request from your browser, and
try to start blah.pl. The rest will be passed on in the environment
variable QUERY_STRING, as defined in the CGI specs.

This is probably all Chinese (or Flemish) for you, so just have a look
at some CGI documentation, e.g. at http://cgi.resourceindex.com/

I recommend that you have a look at the CGI.pm module on how to
use Perl with CGI. It should be included in your Perl documentation.

>Also, do i need to compile my script before i can use it, or can i just use
>*.pl?

You don't need to 'compile' your Perl script. The webserver will 'know' that
it needs to run Perl with this script. How does it know that ?
Well, that depends on the webserver. Ask your webmaster...
If you're your own webmaster, read the documentation that comes with 
your webserver.

So before you come back to this newsgroup with Perl questions, make
sure it IS a Perl question, and not something like : 'This works on my
PC, but not on the webserver'. For that, you can try the
comp.infosystems.www.authoring.* newsgroups.

Good luck, and have fun with CGI/Perl/HTTP/HTML/...

Michel.


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

Date: Sat, 3 Jul 1999 16:42:06 +0500
From: "Faisal Nasim" <swiftkid@bigfoot.com>
Subject: Re: Webpages and Perl-Couple of Questions
Message-Id: <7lm07n$9hc3@news.cyber.net.pk>

> my problem is...how does the script actually *get* this data into the
> program?

say, you want to read:
feck=dooda&bleh=2351353161&foo=harry


use CGI qw/:standard/;
$feck = param ( 'feck' );
$bleh = param ( 'bleh' );
$foo = param ( 'harry' );

or simply:

foreach ( param () )
{
    $ { $_ } = param ( $_ );
}


>
> Also, do i need to compile my script before i can use it, or can i just
use
> *.pl?

you don't have to compile it.

> Cheers.







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

Date: Sun, 04 Jul 1999 05:26:20 GMT
From: nospam.newton@gmx.net (Philip 'Yes, that's my address' Newton)
Subject: Re: Webpages and Perl-Couple of Questions
Message-Id: <377e5de5.137802298@news.nikoma.de>

On Sat, 3 Jul 1999 16:42:06 +0500, "Faisal Nasim"
<swiftkid@bigfoot.com> wrote:

>foreach ( param () )
>{
>    $ { $_ } = param ( $_ );
>}

Can you get that compiled under "use strict"?

Cheers,
Philip
-- 
Philip Newton <nospam.newton@gmx.net>


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

Date: Mon, 5 Jul 1999 20:29:24 +0100
From: "Daniel Vesma" <daniel.vesma@thewebtree.com>
Subject: Re: Webpages and Perl-Couple of Questions
Message-Id: <7lr0vp$q7p$4@gxsn.com>

>my problem is...how does the script actually *get* this data into the
>program?


In your script, just add

use CGI qw(param);
$feck = param("feck");
$bleh = param("bleh");
$foo = param("foo");

Your server will need to have CGI.pm installed. I've never found one that
doesn't.

>Also, do i need to compile my script before i can use it, or can i just use
>*.pl?


Set permissions to let them be run, and leave them as .pl. I assume that you
know that your server needs to support Perl.

Daniel Vesma
http://www.thewebtree.com
http://www.thewebtree.com/daniel-vesma





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

Date: Tue, 06 Jul 1999 13:10:20 -0800
From: Ashish Kadakia <anonymous@web.remarq.com>
Subject: Website search using regular expression
Message-Id: <931295422.2959@www.remarq.com>

Hi, is there anysearch engine, anyone knows it, or how I
can make it which searches the URLs via regular expression.
ie... .* will match all the sites
but .*?com will match websites ending com
 .*?/download will match all website having download
directory.

Thanks
ANK




**** Posted from RemarQ - http://www.remarq.com - Discussions Start Here (tm) ****


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

Date: Tue, 6 Jul 1999 12:52:06 -0700
From: "Rusty Williamson" <rwilliamson@uno.gers.com>
Subject: Weird error message -- ever seen?
Message-Id: <37tg3.439$VX3.21129@news.connectnet.com>

Hi!

A script that normally runs fine got this error out of the blue yesterday:

dynamic linker: /usr/bin/perl5: relocation error: symbol not found:
Perl_pp_substcont

There seems no correllation between anything in the message and the script.
Has anyone ever seen this before.  Does anyone know what it means or where I
can go from here in resolving it?

Thanks,
Rusty Williamson





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

Date: Sun, 04 Jul 1999 06:32:01 GMT
From: R.Joseph <streaking_pyro@my-deja.com>
Subject: What is a "Perl Hacker?"
Message-Id: <7lmv51$lvt$1@nnrp1.deja.com>

I avoid asking stupid questions, but upon seeing this phrase used over
and over by even the seasoned perl programmers in this news group, I
had to ask the question.  I am trying to avoid the obvious connotations
of the word "hacker" and think of a perl hacker as just someone who
knows the language inside and out.  Am I right, or totally off base?
Please give me a hand here, I know I'm stupid.

--
R.Joseph
http://www.24-7design.com
http://bowdown.to


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


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

Date: 4 Jul 1999 02:08:38 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: What is a "Perl Hacker?"
Message-Id: <slrn7nu233.31h.abigail@alexandra.delanet.com>

R.Joseph (streaking_pyro@my-deja.com) wrote on MMCXXXIII September
MCMXCIII in <URL:news:7lmv51$lvt$1@nnrp1.deja.com>:
:: I avoid asking stupid questions, but upon seeing this phrase used over
:: and over by even the seasoned perl programmers in this news group, I
:: had to ask the question.  I am trying to avoid the obvious connotations
:: of the word "hacker" and think of a perl hacker as just someone who
:: knows the language inside and out.  Am I right, or totally off base?


It is the someone who knows the language inside out, and writes programs
in Perl. But isn't that the obvious meaning of hacker?



Abigail
-- 
perl -wlne '}for($.){print' file  # Count the number of lines.


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


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

Date: Sun, 04 Jul 1999 16:46:50 GMT
From: rurban@xarch.tu-graz.ac.at (Reini Urban)
Subject: Re: What is a "Perl Hacker?"
Message-Id: <377f8f89.199799216@judy.x-ray.local>

abigail@delanet.com (Abigail) wrote:

>R.Joseph (streaking_pyro@my-deja.com) wrote on MMCXXXIII September
>MCMXCIII in <URL:news:7lmv51$lvt$1@nnrp1.deja.com>:
>>...and think of a perl hacker as just someone who
>> knows the language inside and out...

>perl -wlne '}for($.){print' file  # Count the number of lines.
            ^^^^^^^^^^^^^^^^^^^^^
this is for sure very hackerish: short and obscure,
or in other words: lazy and clever.
--                                         
Reini


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

Date: Sun, 04 Jul 1999 18:23:12 GMT
From: dave@dave.org.uk (Dave Cross)
Subject: Re: What is a "Perl Hacker?"
Message-Id: <3780a635.4490409@news.demon.co.uk>

On Sun, 04 Jul 1999 06:32:01 GMT, R.Joseph
<streaking_pyro@my-deja.com> wrote:

>I avoid asking stupid questions, but upon seeing this phrase used over
>and over by even the seasoned perl programmers in this news group, I
>had to ask the question.  I am trying to avoid the obvious connotations
>of the word "hacker" and think of a perl hacker as just someone who
>knows the language inside and out.  Am I right, or totally off base?
>Please give me a hand here, I know I'm stupid.

I think your 'obvious' connotations of the word 'hacker' may be wrong.
You're not thinking of the incorrect meaing that a lot of popular
press tries to give it are you?

Read the entry in the jargon file:
<http://www.tuxedo.org/~esr/jargon/html/entry/hacker.html>

Dave...

--
Dave Cross <dave@dave.org.uk>
<http://www.dave.org.uk>


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

Date: Sun, 04 Jul 1999 16:52:55 -0400
From: esalmon@packet.net
Subject: Re: What is a "Perl Hacker?"
Message-Id: <377FC9A7.21@packet.net>

R.Joseph wrote:
> 
> I avoid asking stupid questions, but upon seeing this phrase used over
> and over by even the seasoned perl programmers in this news group, I
> had to ask the question.  I am trying to avoid the obvious connotations
> of the word "hacker" and think of a perl hacker as just someone who
> knows the language inside and out.  Am I right, or totally off base?
> Please give me a hand here, I know I'm stupid.
> 
> --
> R.Joseph
> http://www.24-7design.com
> http://bowdown.to
> 
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.

A hacker is one that is usually not a certified engineere but one who
likes to hack something together. If something is engineered it is not
hacked it is templated and reused as a standard. Hackers are usually
engineers but love to find new ways of doing things, hence the term
"HACKER".

Hackers HACK, crackers CRACK, and engineers FOLLOW RULES that shouldn't
be broken.

Many people here, and other places, use the term loosly and in most
casses a Perl Hacker knows a lot about Perl, along with many different
ways of doing the same thing.


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


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

Date: 2 Jul 1999 20:13:06 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: what questions was perl designed to solve?
Message-Id: <slrn7nqosh.31h.abigail@alexandra.delanet.com>

Fernando Morais Dasilva (fmd@wam.umd.edu) wrote on MMCXXXI September
MCMXCIII in <URL:news:Pine.GSO.4.10.9907021422340.6966-100000@sun17epsl.wam.umd.edu>:
:: 
:: i'm not familiar with perl at all.  i'm writing a short paper on perl and
:: i have a few questions about the language.  the first is what problems was
:: perl designed to solve, another way to ask this question would be, why not
:: choose some other language to respond to the problem in question?


Larry needed a language to write a short paper on.

And there were already papers written on C and awk.



Abigail
-- 
package Z;use overload'""'=>sub{$b++?Hacker:Another};
sub TIESCALAR{bless\my$y=>Z}sub FETCH{$a++?Perl:Just}
$,=$";my$x=tie+my$y=>Z;print$y,$x,$y,$x,"\n";#Abigail


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


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

Date: 4 Jul 1999 17:42:17 -0500
From: claird@Starbase.NeoSoft.COM (Cameron Laird)
Subject: Re: what questions was perl designed to solve?
Message-Id: <7loo09$skp$1@Starbase.NeoSoft.COM>

In article <Pine.GSO.4.10.9907021422340.6966-100000@sun17epsl.wam.umd.edu>,
Fernando Morais Dasilva  <fmd@wam.umd.edu> wrote:
>
>i'm not familiar with perl at all.  i'm writing a short paper on perl and
>i have a few questions about the language.  the first is what problems was
>perl designed to solve, another way to ask this question would be, why not
>choose some other language to respond to the problem in question?
			.
			.
			.
Originally?  Back at the dawn of time?  Larry Wall was
working for some combination of the NSA and a corporate
entity that was something like Unisys, around 1987,
when his Manager asked for reports from a distributed
configuration management system he'd hacked from B-news.
Larry decided that a better "Unix glue" language than
the contemporaneous awk would help him solve the problem,
so he created Perl.

That description leaves out a lot of steps.

Does your paragraph have more than one question?  I'm
quite confused.  Perhaps you'll want to know that Perl
now does many things that didn't even exist when Larry
first wrote it.  Perhaps you'll want to read <URL:http://
language.perl.com/newdocs/pod/perlfaq1.html#When_shouldn_t_I_program_in_Perl>,
Tom Christiansen's canonical rumination on the topic of
when to use other languages.

To work properly on your paper, I recommend you acquaint
yourself with the wealth of information freely available
on the Web.  Start at any place obvious, like <URL:http://
www.perl.com/>.
-- 

Cameron Laird           http://starbase.neosoft.com/~claird/home.html
claird@NeoSoft.com      +1 281 996 8546 FAX


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

Date: Tue, 6 Jul 1999 06:21:57 -0400 (EDT)
From: pmIRC@webtv.net (=?ISO-8859-1?Q?^=FEmIRC^?=)
Subject: Whats wrong with this script
Message-Id: <24955-3781D8C5-425@newsd-621.iap.bryant.webtv.net>

im trying to run this script from www.hypermart.net

heres a script that converts HTML into PERL or C.  please tell me where
im going wrong and no errors show up in my error log.
#!/usr/local/bin/perl -s 
# 
# HTML TO CGI CONVERTER                          html2cgi.pl      
#
#   Converts an HTML file to either C or Perl code for inclusion in
#   a CGI script.
# 
# Reads STDIN and writes STDOUT 
#    
# Switches: 
# 
#   -c     = Generate C code. 
#   -p     = Generate Perl code (default). 
#   -l     = Number of leading spaces on each line (defaults to 0). 
#   -m     = Maximum number of characters per print statement (defaults
to 70).  #   -usage = show summary of options 
# 
if ($usage) 
  { 
    print "\nUSAGE: html2cgi [-c|-p] [-l=leader] [-m=max_chars]
[-usage]\n\n"; exit;    } 
$leader = ' ' x $l; 
$m = 70 if (! defined($m)); 
while ($line = <STDIN>) 
  { 
    $line =~ s/\r?\n$//; 
    $line =~ s/\\/\\\\/g; # escape back slashes 
    $line =~ s/"/\\"/g; # escape quotes 
    $line .= "\\n"; # add a newline 
    while (length($line) > 0) 
      { 
        $frag = $line; 
        $frag = $1 while ((length($frag) > $m)&&($frag =~ /(.+)\s.*$/));
$frag = substr($line,0,$m) if (length($frag)>$m); $frag =
substr($line,0,length($frag)+1) if ($frag =~ /\\$/); $line =
substr($line,length($frag)); print $leader;          print ($c ?
"printf(\"$frag\");\n" : "print \"$frag\";\n"); } 
  } 

thannx for any replys that would help me also email me since i dont
check here often which i should and will from now on but please email
with any help of fixing this problem.



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

Date: Tue, 06 Jul 1999 17:42:30 GMT
From: bigcheese@my-deja.com
Subject: Re: Whats wrong with this script
Message-Id: <7ltf64$k9f$1@nnrp1.deja.com>

This script is a command line script, not a CGI script. There's no real
difference other than where it gets its input and puts its output.

This means you can run it on your computer from a command line (if you
have Perl), but not from the web.

But you can convert it to a CGI script by making sure it prints its
headers (print "Content-type: text/html\n\n") and tweaking the input and
output (you'll have to use a form).

In my opinion, this script would be best used from a command line on
your computer though.

Hope this helps!

- Dan

In article <24955-3781D8C5-425@newsd-621.iap.bryant.webtv.net>,
  pmIRC@webtv.net (=?ISO-8859-1?Q?^=FEmIRC^?=) wrote:
> im trying to run this script from www.hypermart.net
>
> heres a script that converts HTML into PERL or C.  please tell me
where
> im going wrong and no errors show up in my error log.
> #!/usr/local/bin/perl -s
> #
> # HTML TO CGI CONVERTER                          html2cgi.pl
> #
> #   Converts an HTML file to either C or Perl code for inclusion in
> #   a CGI script.
> #
> # Reads STDIN and writes STDOUT
> #
> # Switches:
> #
> #   -c     = Generate C code.
> #   -p     = Generate Perl code (default).
> #   -l     = Number of leading spaces on each line (defaults to 0).
> #   -m     = Maximum number of characters per print statement
(defaults
> to 70).  #   -usage = show summary of options
> #
> if ($usage)
>   {
>     print "\nUSAGE: html2cgi [-c|-p] [-l=leader] [-m=max_chars]
> [-usage]\n\n"; exit;    }
> $leader = ' ' x $l;
> $m = 70 if (! defined($m));
> while ($line = <STDIN>)
>   {
>     $line =~ s/\r?\n$//;
>     $line =~ s/\\/\\\\/g; # escape back slashes
>     $line =~ s/"/\\"/g; # escape quotes
>     $line .= "\\n"; # add a newline
>     while (length($line) > 0)
>       {
>         $frag = $line;
>         $frag = $1 while ((length($frag) > $m)&&($frag =~
/(.+)\s.*$/));
> $frag = substr($line,0,$m) if (length($frag)>$m); $frag =
> substr($line,0,length($frag)+1) if ($frag =~ /\\$/); $line =
> substr($line,length($frag)); print $leader;          print ($c ?
> "printf(\"$frag\");\n" : "print \"$frag\";\n"); }
>   }
>
> thannx for any replys that would help me also email me since i dont
> check here often which i should and will from now on but please email
> with any help of fixing this problem.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


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

Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 1 Jul 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.  

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 V9 Issue 54
************************************


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