Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

perl-beginner · Perl Beginners Mailing List

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 3762
  • Category: Perl
  • Founded: Aug 2, 1998
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 61 - 90 of 27470   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#61 From: "Jeff Boes" <jboes@...>
Date: Sat Jun 12, 1999 2:53 am
Subject: [PBML] Re: Using a list in HTML
jboes@...
Send Email Send Email
 
use CGI;

print header,
	 start_html,
	 start_form,
	 scrolling_list(-name=>'network',
		 -multiple=>'true',
		 -values=>['ethernet','token16','token4'],
		 -labels=>{'ethernet'=>'Ethernet',
			    'token16'=>'Token Ring - 16MB',
			    'token4'=>'Token Ring - 4MB'}),
	 end_form,
	 end_html;


> -----Original Message-----
> From: dalekh@... [mailto:dalekh@...]
> Sent: Friday, June 11, 1999 4:46 PM
> I would like to use a list of values created from parsing a quoted list
> and display it in a browser using HTML. I also want the user to be able
> select a item in the list and perform an action against it using a button.
> It appears <SELECT> is the best HTML tag to use but I don't know how to
> input the list to the tag. Here is an example that I found for the tag:
> <SELECT MULTIPLE NAME="network">
>       <OPTION SELECTED VALUE="ethernet"> Ethernet
>       <OPTION VALUE="token16"> Token Ring - 16MB
>       <OPTION VALUE="token4"> Token Ring - 4MB
>       <OPTION VALUE="localtalk"> LocalTalk
>       <OPTION VALUE="other"> Other...
>       </SELECT>
>
> Any suggestions?
> thanks
>
>
>
>
>
>
> ------------------------------------------------------------------------
> What's everyone looking at? Check out the Top40 most requested stocks!
> Plus quotes, charts, news, portfolios, mutual funds, and discussion.
> All free, fast, and easy. Visit: http://clickhere.egroups.com/click/237
>
>
> eGroups.com home: http://www.egroups.com/group/perl-beginner
> http://www.egroups.com - Simplifying group communications
>
>
>
>
>
----
~~~~~~~~~~~~~|The tusks that clashed in mighty brawls of mastodons are
              |billiard balls./The sword of Charlemagne the Just is
Jeffery Boes |ferric oxide, known as rust./The grizzly bear whose potent
jboes@...|hug was feared by all, is now a rug./Great Caesar's bust
              |is on the shelf, and I don't feel so well myself.
              |"On the Vanity of Earthly Greatness", A.Guiterman (1871-1943)


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

eGroups.com home: http://www.egroups.com/group/perl-beginner
http://www.egroups.com - Simplifying group communications

#62 From: dalekh@...
Date: Sat Jun 12, 1999 5:07 pm
Subject: [PBML] Re: Using a list in HTML
dalekh@...
Send Email Send Email
 
what about an array like -

@array

   or

$list



<001001beb47e$b21126a0$204fbbd-@mishra> wrote:
Original Article: http://www.egroups.com/group/perl-beginner/?start=61
> use CGI;
>
> print header,
>  start_html,
>  start_form,
>  scrolling_list(-name=>'network',
> 	 -multiple=>'true',
> 	 -values=>['ethernet','token16','token4'],
> 	 -labels=>{'ethernet'=>'Ethernet',
> 			   'token16'=>'Token Ring - 16MB',
> 			   'token4'=>'Token Ring - 4MB'}),
>  end_form,
>  end_html;
>
>
> > -----Original Message-----
> > From: dalekh@... [mailto:dalekh@...]
> > Sent: Friday, June 11, 1999 4:46 PM
> > I would like to use a list of values created from parsing a quoted list
> > and display it in a browser using HTML. I also want the user to be able
> > select a item in the list and perform an action against it using a button.
> > It appears <SELECT> is the best HTML tag to use but I don't know how to
> > input the list to the tag. Here is an example that I found for the tag:
> > <SELECT MULTIPLE NAME="network">
> >       <OPTION SELECTED VALUE="ethernet"> Ethernet
> >       <OPTION VALUE="token16"> Token Ring - 16MB
> >       <OPTION VALUE="token4"> Token Ring - 4MB
> >       <OPTION VALUE="localtalk"> LocalTalk
> >       <OPTION VALUE="other"> Other...
> >       </SELECT>
> >
> > Any suggestions?
> > thanks
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> > What's everyone looking at? Check out the Top40 most requested stocks!
> > Plus quotes, charts, news, portfolios, mutual funds, and discussion.
> > All free, fast, and easy. Visit: http://clickhere.egroups.com/click/237
> >
> >
> > eGroups.com home: http://www.egroups.com/group/perl-beginner
> > http://www.egroups.com - Simplifying group communications
> >
> >
> >
> >
> >
> ----
> ~~~~~~~~~~~~~|The tusks that clashed in mighty brawls of mastodons are
>              |billiard balls./The sword of Charlemagne the Just is
> Jeffery Boes |ferric oxide, known as rust./The grizzly bear whose potent
> jboes@...|hug was feared by all, is now a rug./Great Caesar's bust
>              |is on the shelf, and I don't feel so well myself.
>              |"On the Vanity of Earthly Greatness", A.Guiterman (1871-1943)
>
>


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

eGroups.com home: http://www.egroups.com/group/perl-beginner
http://www.egroups.com - Simplifying group communications

#63 From: "Jeff Boes" <jboes@...>
Date: Sun Jun 13, 1999 12:26 am
Subject: [PBML] Re: Using a list in HTML
jboes@...
Send Email Send Email
 
You can substitute an array reference for the [...] below, just put in
'\@array'. Dunno what you mean by $list, did you mean to type %list?  If so,
you can use a list reference with \%list.

> -----Original Message-----
> From: dalekh@... [mailto:dalekh@...]
> Sent: Saturday, June 12, 1999 1:08 PM
> To: perl-beginner@egroups.com
> Subject: [PBML] Re: Using a list in HTML
>
>
>
> what about an array like -
>
> @array
>
>   or
>
> $list
>
>
>
> <001001beb47e$b21126a0$204fbbd-@mishra> wrote:
> Original Article: http://www.egroups.com/group/perl-beginner/?start=61
> > use CGI;
> >
> > print header,
> >  start_html,
> >  start_form,
> >  scrolling_list(-name=>'network',
> > 	 -multiple=>'true',
> > 	 -values=>['ethernet','token16','token4'],
> > 	 -labels=>{'ethernet'=>'Ethernet',
> > 			   'token16'=>'Token Ring - 16MB',
> > 			   'token4'=>'Token Ring - 4MB'}),
> >  end_form,
> >  end_html;
> >
> >
> > > -----Original Message-----
> > > From: dalekh@... [mailto:dalekh@...]
> > > Sent: Friday, June 11, 1999 4:46 PM
> > > I would like to use a list of values created from parsing a
> quoted list
> > > and display it in a browser using HTML. I also want the user
> to be able
> > > select a item in the list and perform an action against it
> using a button.
> > > It appears <SELECT> is the best HTML tag to use but I don't
> know how to
> > > input the list to the tag. Here is an example that I found
> for the tag:
> > > <SELECT MULTIPLE NAME="network">
> > >       <OPTION SELECTED VALUE="ethernet"> Ethernet
> > >       <OPTION VALUE="token16"> Token Ring - 16MB
> > >       <OPTION VALUE="token4"> Token Ring - 4MB
> > >       <OPTION VALUE="localtalk"> LocalTalk
> > >       <OPTION VALUE="other"> Other...
> > >       </SELECT>
> > >
> > > Any suggestions?
> > > thanks
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > What's everyone looking at? Check out the Top40 most requested stocks!
> > > Plus quotes, charts, news, portfolios, mutual funds, and discussion.
> > > All free, fast, and easy. Visit:
http://clickhere.egroups.com/click/237
> >
> >
> > eGroups.com home: http://www.egroups.com/group/perl-beginner
> > http://www.egroups.com - Simplifying group communications
> >
> >
> >
> >
> >
> ----
> ~~~~~~~~~~~~~|The tusks that clashed in mighty brawls of mastodons are
>              |billiard balls./The sword of Charlemagne the Just is
> Jeffery Boes |ferric oxide, known as rust./The grizzly bear whose potent
> jboes@...|hug was feared by all, is now a rug./Great Caesar's bust
>              |is on the shelf, and I don't feel so well myself.
>              |"On the Vanity of Earthly Greatness", A.Guiterman
(1871-1943)
>
>


------------------------------------------------------------------------
FREE email Newsletters delivered right to your in-box.
CNET, USAToday, RollingStone, and more…
Click Here Now!  http://clickhere.egroups.com/click/314


eGroups.com home: http://www.egroups.com/group/perl-beginner
http://www.egroups.com - Simplifying group communications





----
WARNING: This message contains Thought and Thought By-Products.
_________
Jeff Boes  <><  jboes@...
Mur Consulting  http://www.qtm.net/~jboes/


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

eGroups.com home: http://www.egroups.com/group/perl-beginner
http://www.egroups.com - Simplifying group communications

#64 From: dave@...
Date: Sun Jun 20, 1999 3:17 pm
Subject: [PBML] Re: Using a list in HTML
dave@...
Send Email Send Email
 
<7ju452$lfa-@egroups.com> wrote:
Original Article: http://www.egroups.com/group/perl-beginner/?start=62
>
> what about an array like -
>
> @array
>
>   or
>
> $list

Something like this perhaps?

use CGI;

my %list = ('ethernet'=>'Ethernet',
             'token16'=>'Token Ring - 16MB',
             'token4'=>'Token Ring - 4MB');

print header,
         start_html,
         start_form,
         scrolling_list(-name=>'network',
                 -multiple=>'true',
                 -values=>[keys @list],
                 -labels=>\%list),
         end_form,
         end_html;


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

eGroups.com home: http://www.egroups.com/group/perl-beginner
http://www.egroups.com - Simplifying group communications

#65 From: Tomas Lauridsen <trol@...>
Date: Sun Jun 20, 1999 6:00 pm
Subject: [PBML] Re: Using a list in HTML
trol@...
Send Email Send Email
 
On 20-Jun-99 dave@... wrote:

If i paste this program to a file and run it, then I just get:

No comma allowed after filehandle at ./form.pl line 9.

why and what to do?

> use CGI;
>
> my %list = ('ethernet'=>'Ethernet',
>             'token16'=>'Token Ring - 16MB',
>             'token4'=>'Token Ring - 4MB');
>
> print header,
>         start_html,
>         start_form,
>         scrolling_list(-name=>'network',
>                 -multiple=>'true',
>                 -values=>[keys @list],
>                 -labels=>\%list),
>         end_form,
>         end_html;

----------------------------------
E-Mail: Tomas Lauridsen <trol@...>

Love thy neighbor, tune thy piano.

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

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

eGroups.com home: http://www.egroups.com/group/perl-beginner
http://www.egroups.com - Simplifying group communications

#66 From: Greg Webster <greg@...>
Date: Sun Jun 20, 1999 6:31 pm
Subject: [PBML] Your unseen moderator
greg@...
Send Email Send Email
 
Hiya folks,

Just a reminder from your unseen moderator that in order to post to the
list, you really should join it. I've had a couple of people recently
trying to post from outside the list without being subscribed, and it means
I have to approve the messages by hand (and I hate that). Please join, tell
your friends to join, even invite the family dog.

List info is at:
http://www.egroups.com/list/perl-beginner/

Thanks,

Greg




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

eGroups.com home: http://www.egroups.com/group/perl-beginner
http://www.egroups.com - Simplifying group communications

#67 From: sheldon.smith@...
Date: Fri Jul 9, 1999 3:56 am
Subject: [PBML] Re: beginning perl
sheldon.smith@...
Send Email Send Email
 
<dbaa10208a5fd211b57b0008c7281246324de-@nj7460exch006u> wrote:
original article:http://www.egroups.com/group/perl-beginner/?start=44
> Hi,
> I am looking for a perl tutorial that caters to beginners.

In another mailing list, I wrote a short article about beginning
programming with C/C++ and/or Perl. Here's an excerpt.

"Perl is newer than the C family, so there aren't quite as many books.
One that I can recommend is "Learning Perl", written by Randal
Schwartz[2].
General information about Perl is available at www.perl.com, and at
CPAN (Comprehensive Perl Archive Network) http://www.cpan.org/ .
Like the simtel.net site, CPAN is mirrored all over the globe. Find the
site nearest you.

To date I've located a tutorial at http://consult.ncsa.uiuc.edu/cgi-bin
/ . If you want it and can't find it anywhere else, let me know. I'll
mail you a copy (if I haven't misplaced it).

"The script we'll be writing, called mailform, will be useful to anyone
who has wanted to create some interactive pages on the World Wide Web.
Web servers usually support running auxilary programs to facilitate
interactive content. There is a standard called CGI (Common Gateway
Interface) which defines a minimum set of environment variables that
the program can use to determine its response.
"The program we write will take the results of an HTML form and mail
the values to a specified person. Writing the HTML for this form is
beyond the scope of this course, but a sample form will be provided."

---------------
[2]Published by O'Reilly & Associates, Inc., "Learning Perl" has a
sketch of a llama on the front. The "official" language reference of
Perl, "Programming Perl", written by Larry Wall (and others, including
Randal Schwartz), is also published by O'Reilly. It has a sketch of a
camel on the front. I have yet to find a bad (or even mediocre)
O'Reilly book. And I've bought enough of them.
Out in the Usenet newgroups,   comp.lang.perl.misc   is the main source
for help with Perl. Get the FAQ before you start posting questions.
When you see references to the "camel" and "llama" books, the above are
what are being referenced.

<end>


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

eGroups.com home: http://www.egroups.com/group/perl-beginner
http://www.egroups.com - Simplifying group communications

#68 From: dave@...
Date: Thu Jul 15, 1999 1:28 pm
Subject: [PBML] Re: Using a list in HTML
dave@...
Send Email Send Email
 
<xfmail.990620200020.tro-@...> wrote:
original article:http://www.egroups.com/group/perl-beginner/?start=65
>
> On 20-Jun-99 dave@... wrote:
>
> If i paste this program to a file and run it, then I just get:
>
> No comma allowed after filehandle at ./form.pl line 9.
>
> why and what to do?

Sorry about that. The corrected code is below...


> > use CGI qw/:standard/;
> >
> > my %list = ('ethernet'=>'Ethernet',
> >             'token16'=>'Token Ring - 16MB',
> >             'token4'=>'Token Ring - 4MB');
> >
> > print header,
> >         start_html,
> >         start_form,
> >         scrolling_list(-name=>'network',
> >                 -multiple=>'true',
> >                 -values=>[keys %;list],
> >                 -labels=>\%list),
> >         end_form,
> >         end_html;



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

eGroups.com home: http://www.egroups.com/group/perl-beginner
http://www.egroups.com - Simplifying group communications

#69 From: news@...
Date: Tue Aug 3, 1999 9:00 am
Subject: [PBML] New to Perl - with a tricky question....please help!
news@...
Send Email Send Email
 
Hello,

I am very new to Perl. I have wrote a simple program - "testbuf.pl"
(code attached below), just to see how "safe" is perl
in a very busy server environment, with many people accessing the same
script / files.

testbuf.pl is a very simple program, which read a number from a file,
increase it by 1, then
write back to the file.... to emulate a busy server I add a loop of
1..2000, so the file will
be read and opened 2,000 times... which means if I put 0 in the file to
start with, the result
after 2000 executions is simply - 2000.

Now if I run "testbuf.pl" FOUR times, the end result is 8000...

However, if I run "testbuf.pl &" in the backgroup FOUR times from the
command line,  start a new instance before
the previous one finished... there seemed to be a problem.... the end
result is almost random,
but always less than 8000... sometimes 6000, sometimes 3000....

Obviously.... there was a problem while multiple perl scripts try to
open / write to the same file intensively.

My question
=========
Is there an efficient, safe way to OPEN / WRITE to file in a
multiusers, busy environment?

Is there any way to make the end result always 8000... even if I run
the four instance of "testbuf.pl"
at the same time?

Many thanks for your kind help


Godfrey Ko



testbuf.pl
============================

#!/usr/bin/perl -w

for ($runa=1;$runa<=2000;$runa++)
{

open (FILE, "<count.txt");
flock(FILE,2);
$i = (<FILE>);
$i++;
flock(FILE,8);
close(FILE);

open (FILE, ">count.txt");
select(FILE);
$| = 1;
flock (FILE,2);
print FILE $i;
flock(FILE,8);
close (FILE);


}

#70 From: "Greg Thompson" <greg@...>
Date: Fri Aug 6, 1999 5:31 am
Subject: [PBML] Little Perl Prog Help
greg@...
Send Email Send Email
 
Hi list! Can someone please help me write a quick little perl program that
takes info from a form submission (a paragraph that someone submits, plus
their name and stuff like that) which creates a directory with an index.html
(directory named after the users submitted nickname) under an existing
directory. The user also needs to be able to specify which jpg file they
wish to use as a background in the html file that was created. I've got some
of the code, but I need help. Any takers???

--Greg

#71 From: write_deborah@...
Date: Sat Aug 7, 1999 7:41 pm
Subject: [PBML] Re: Perl-Beginner Mailing List
write_deborah@...
Send Email Send Email
 
Netscape says it cannot find this link--is there a new one? I just
signed up with thisgroup today as i am interested in learning Perl.
Thanks
Deborah
>
> As for now, I just finished my first attempt at graphics manipulation
with Perl at:
> http://silverspin.web66.com/greg/experiments/worldmap/worldmap.shtml
>
> If anyone wishes to find out more, email the list.
>
> Thanks,
>
> Greg
>
>
>
> -----
> Original Message: http://www.findmail.com/list/perl-beginner/?start=1
> Start a FREE email list at http://www.FindMail.com/
>
>
> ----
> Read this list on the Web at http://www.makelist.com/list/perl-beginn
er/
> To unsubscribe, email to perl-beginner-unsubscribe@...
> To subscribe, email to perl-beginner-subscribe@...
> --
> Start a FREE E-Mail List at http://www.makelist.com !

#72 From: Greg Webster <greg@...>
Date: Sat Aug 7, 1999 10:39 pm
Subject: [PBML] Re: Perl-Beginner Mailing List
greg@...
Send Email Send Email
 
Yup, here it is :)

http://www.gadgeteer.net/worldmap/worldmap.shtml

Greg


At 12:41 PM 8/7/99 -0700, you wrote:
>Netscape says it cannot find this link--is there a new one? I just
>signed up with thisgroup today as i am interested in learning Perl.
>Thanks
>Deborah
>>
>> As for now, I just finished my first attempt at graphics manipulation
>with Perl at:
>> http://silverspin.web66.com/greg/experiments/worldmap/worldmap.shtml
>>
>> If anyone wishes to find out more, email the list.
>>
>> Thanks,
>>
>> Greg
>>
>>
>>
>> -----
>> Original Message: http://www.findmail.com/list/perl-beginner/?start=1
>> Start a FREE email list at http://www.FindMail.com/
>>
>>
>> ----
>> Read this list on the Web at http://www.makelist.com/list/perl-beginn
>er/
>> To unsubscribe, email to perl-beginner-unsubscribe@...
>> To subscribe, email to perl-beginner-subscribe@...
>> --
>> Start a FREE E-Mail List at http://www.makelist.com !
>
>
>------------------------------------------------------------------------
>Click here for 4 FREE TRIAL ISSUES of Sports Illustrated!  If you're
>satisfied, your subscription will continue at the guaranteed lowest rate
>of $.75 an issue for 52 issues! http://clickhere.egroups.com/click/678
>
>
>eGroups.com home: http://www.egroups.com/group/perl-beginner
>http://www.egroups.com - Simplifying group communications
>
>
>
>
>
>
Greg Webster - http://www.geekrights.org - http://www.gadgeteer.net
Email: greg@...
---Geek Code Block begin---
GAT d H s+:+ g+ p1 !au a- w++ v+++ C++++ UL+++ P+++ L+ 3 E---- N+ K- W+ M--
V- -po+ t- 5- j+ R+++ G+ tv-- D++ B--- e+ u** h- f- r++ !n y+++
---Geek Code Block end---

#73 From: Manolo.Marzan@...
Date: Fri Aug 13, 1999 1:36 pm
Subject: [PBML] Help...
Manolo.Marzan@...
Send Email Send Email
 
> Hi,
>
>  I am just new in Perl programming and I have this problem.. For
> example:
>
>  Currently I have a code like this:
>  Filename  : "test"
>  Parameter that can be passed is a, b, c, etc....
>
>  For ex:
>  $ test a
>
>  and I have this code:
>
>  If ($ARGV[0] eq "a") {
> 	 function_a(\$param1, \$param2, \$param3);
>  } elsif ($ARGV[0] eq "b") {
>   	 function_b(\$param1, \$param2, \$param3);
>  } elsif ($ARGV[0] eq "c") {
>   	 function_c(\$param1, \$param2, \$param3);
>  }
>
>  As you can notice only the letters after the function_ is being
> changed and I have a lot of lines. If only I can pass the $ARGV[0] to call
> a function maybe it will look better.
>
	 I placed those backslashes (\) in my parameter list because I want
them as references. And inside those functions they are being manipulated.
After the function they will have a new values. I don't know if that's the
right way to do it but currently it's working. If you have any suggestion on
how will I do it better. Please respond...

	 function_$ARGV[0](\$param1, \$param2, \$param3);

this can already accommodate every parameter a user can type in just one
line.

	 Thanks for the help...  and if you have not grasp what I mean on my
example. Please mail me so that I can explain it further...

	 Thanks in advance...

MANOLO P. MARZAN
ICL
Wenlock Way
West Gorton
Manchester, UK

#74 From: minuteofdecay@...
Date: Mon Sep 6, 1999 2:41 am
Subject: [PBML] problems
minuteofdecay@...
Send Email Send Email
 
i am having with a chat cgi script.
The script can be reached at
http://www.creaturesofnight.org/chat/chat.cgi
login with test paswd test.  if you can help me ill be thankful

#75 From: "Smith, Eric - WPAFB/YSXOI" <Eric.Smith@...>
Date: Tue Sep 7, 1999 1:57 pm
Subject: [PBML] Re: problems
Eric.Smith@...
Send Email Send Email
 
The script can not open the file,
"http://www.creaturesofnight.org/chat/logs/1999-9-7.txt".  It appears that
this file does not exist.  Not sure, but would guess the script is looking
for an existing file and not creating the file if it does not exist.  I
assume you are openinig in append mode.  The open should look for the file
and automatically create the file if it does not exist.  Could be a
permissions issue - the script (web server) needs permissions write
permissions in the directory.

> - Eric D. Smith - Webmaster
>    B-2 Program Office - (937) 656-5256
>    mailto:eric.smith@...
>    B-2 Web Support - mailto:webmaster@...
    Perl makes easy things easy and hard things possible

> -----Original Message-----
> From: minuteofdecay@... [SMTP:minuteofdecay@...]
> Sent: Sunday, September 05, 1999 10:41 PM
> To: perl-beginner@eGroups.com
> Subject: [PBML] problems
>
> i am having with a chat cgi script.
> The script can be reached at
> http://www.creaturesofnight.org/chat/chat.cgi
> login with test paswd test.  if you can help me ill be thankful
>
>
> ------------------------------------------------------------------------
> MyPoints-Free Rewards When You're Online.
> Start with up to 150 Points for joining!
> http://clickhere.egroups.com/click/805
>
>
> eGroups.com home: http://www.egroups.com/group/perl-beginner
> http://www.egroups.com - Simplifying group communications
>
>
>
>

#76 From: fenners@...
Date: Wed Sep 8, 1999 4:15 pm
Subject: [PBML] Testing CGI scripts
fenners@...
Send Email Send Email
 
I am new to the Internet and I am steadily getting my head around how
things work having spent a long time in the IT industry using COBOL
etc.

I now know that in order to store/process data submitted on a form I
need a CGI script program to do the work.

I am about to embark on a project that will require me to write such a
script. I intend to write this in Perl.

My question is this....

In order to test my ideas, do I need to have this program set up on a
server somewhere (my ISP provider does not provide such facilities -
Freeserve) or can I store the program on my own PC while I'm developing
my idea? I would hope that I could get my HTML to point to the code on
my own PC while I am testing.

I would be grateful for any advice.

Ian Fenelon

#77 From: "Smith, Eric - WPAFB/YSXOI" <Eric.Smith@...>
Date: Wed Sep 8, 1999 4:41 pm
Subject: [PBML] Re: Testing CGI scripts
Eric.Smith@...
Send Email Send Email
 
You can...

1.  Run the script from the command line.  The CGI module (CGI.pm) provides
for command line debugging.

2.  Install a web server on your PC and test from the browser.

3.  Use a debugger, such as "ActiveState Debugger"
(http://www.activestate.com), "ptkdb" (http://world.std.com/~aep/ptkdb/ -
free, nice but requires the Tk module), or "PerlBuilder"
(http://www.solutionsoft.com - an editor with limited debugging for CGI),

> - Eric D. Smith - Webmaster
>    B-2 Program Office - (937) 656-5256
>    mailto:eric.smith@...
>    B-2 Web Support - mailto:webmaster@...
    Perl makes easy things easy and hard things possible

> -----Original Message-----
> From: fenners@...
> [SMTP:fenners@...]
> Sent: Wednesday, September 08, 1999 12:15 PM
> To: perl-beginner@eGroups.com
> Subject: [PBML] Testing CGI scripts
>
> I am new to the Internet and I am steadily getting my head around how
> things work having spent a long time in the IT industry using COBOL
> etc.
>
> I now know that in order to store/process data submitted on a form I
> need a CGI script program to do the work.
>
> I am about to embark on a project that will require me to write such a
> script. I intend to write this in Perl.
>
> My question is this....
>
> In order to test my ideas, do I need to have this program set up on a
> server somewhere (my ISP provider does not provide such facilities -
> Freeserve) or can I store the program on my own PC while I'm developing
> my idea? I would hope that I could get my HTML to point to the code on
> my own PC while I am testing.
>
> I would be grateful for any advice.
>
> Ian Fenelon
>
>
>
> ------------------------------------------------------------------------
> MyPoints-Free Rewards When You're Online.
> Start with up to 150 Points for joining!
> http://clickhere.egroups.com/click/805
>
>
> eGroups.com home: http://www.egroups.com/group/perl-beginner
> http://www.egroups.com - Simplifying group communications
>
>
>
>

#78 From: "Dave Hannum" <hannum@...>
Date: Wed Sep 8, 1999 5:22 pm
Subject: [PBML] Re: Testing CGI scripts
hannum@...
Send Email Send Email
 
Get yourself a copy of the latest Perl for Win32 from Active States, then get
something like Microsoft's Personal Web Server.  Both
are freeware.  Set your machine up as a "Personal" web server and away you go. 
PWS can execute your CGI's.  Just be careful and set
it up right the first time because with your Windows registry, if you hose it,
it's very difficult to fix.


=================================
"Technology" is stuff that was invented after
you were born.

David Hannum
Web Analyst/Programmer
Ohio University
hannum@...
(740) 597-2524



----- Original Message -----
From: <fenners@...>
To: <perl-beginner@eGroups.com>
Sent: Wednesday, September 08, 1999 11:15 AM
Subject: [PBML] Testing CGI scripts


I am new to the Internet and I am steadily getting my head around how
things work having spent a long time in the IT industry using COBOL
etc.

I now know that in order to store/process data submitted on a form I
need a CGI script program to do the work.

I am about to embark on a project that will require me to write such a
script. I intend to write this in Perl.

My question is this....

In order to test my ideas, do I need to have this program set up on a
server somewhere (my ISP provider does not provide such facilities -
Freeserve) or can I store the program on my own PC while I'm developing
my idea? I would hope that I could get my HTML to point to the code on
my own PC while I am testing.

I would be grateful for any advice.

Ian Fenelon



------------------------------------------------------------------------
MyPoints-Free Rewards When You're Online.
Start with up to 150 Points for joining!
http://clickhere.egroups.com/click/805


eGroups.com home: http://www.egroups.com/group/perl-beginner
http://www.egroups.com - Simplifying group communications

#79 From: james@... (James Fox)
Date: Thu Sep 9, 1999 3:02 pm
Subject: [PBML] # comments
james@...
Send Email Send Email
 
Hello,

I'm new to this list, let me do a very small intoduction.

<boring bit>
I'm James Fox, working in Sheffield, England, for a consultancy
called DJ Associates http://www.djassociates.com
</boring bit>

Anyway, the question I want to ask is, when you make a comment
in a perl script like this - #comment
Are you allowed to use symbols within the comment, such as -'&
could I get away with this...?
# comment - please don't edit.

Or wouldn't it work?

Cheers
James

:: James Fox
:: DJ Associates
:: Tel: +44 (0)114 2210525
:: Fax: +44 (0)114 2493450
:: 113 days to go!

#80 From: Manolo.Marzan@...
Date: Thu Sep 9, 1999 3:06 pm
Subject: [PBML] Re: # comments
Manolo.Marzan@...
Send Email Send Email
 
Yes, you are allowed to use any characters when you're placing comments...

Manolo Marzan
Wenlock Way
West Gorton
Manchester UK

-----Original Message-----
From: james@... [mailto:james@...]
Sent: 09 September 1999 16:03
To: perl-beginner@egroups.com
Subject: [PBML] # comments


Hello,

I'm new to this list, let me do a very small intoduction.

<boring bit>
I'm James Fox, working in Sheffield, England, for a consultancy
called DJ Associates http://www.djassociates.com
</boring bit>

Anyway, the question I want to ask is, when you make a comment
in a perl script like this - #comment
Are you allowed to use symbols within the comment, such as -'&
could I get away with this...?
# comment - please don't edit.

Or wouldn't it work?

Cheers
James

:: James Fox
:: DJ Associates
:: Tel: +44 (0)114 2210525
:: Fax: +44 (0)114 2493450
:: 113 days to go!

------------------------------------------------------------------------
Want the power to purchase wisely? Productopia has the answers.
http://clickhere.egroups.com/click/553


eGroups.com home: http://www.egroups.com/group/perl-beginner
http://www.egroups.com - Simplifying group communications

#81 From: "Dave Hannum" <hannum@...>
Date: Thu Sep 9, 1999 4:16 pm
Subject: [PBML] Re: # comments
hannum@...
Send Email Send Email
 
Hello James,

In answer to your quesiton, yes - Perl disregards anything in a line after the #
sign except for the shebang on the first line.

Example:

###########################################
# This &$')(#%*'n program won't run
###########################################

OR

#! /usr/local/bin/perl -w
use CGI;       # what the !*#$ is CGI?

Get my drift?

=================================
"Technology" is stuff that was invented after
you were born.

David Hannum
Web Analyst/Programmer
Ohio University
hannum@...
(740) 597-2524



----- Original Message -----
From: James Fox <james@...>
To: <perl-beginner@egroups.com>
Sent: Thursday, September 09, 1999 10:02 AM
Subject: [PBML] # comments


Hello,

I'm new to this list, let me do a very small intoduction.

<boring bit>
I'm James Fox, working in Sheffield, England, for a consultancy
called DJ Associates http://www.djassociates.com
</boring bit>

Anyway, the question I want to ask is, when you make a comment
in a perl script like this - #comment
Are you allowed to use symbols within the comment, such as -'&
could I get away with this...?
# comment - please don't edit.

Or wouldn't it work?

Cheers
James

:: James Fox
:: DJ Associates
:: Tel: +44 (0)114 2210525
:: Fax: +44 (0)114 2493450
:: 113 days to go!

------------------------------------------------------------------------
Want the power to purchase wisely? Productopia has the answers.
http://clickhere.egroups.com/click/553


eGroups.com home: http://www.egroups.com/group/perl-beginner
http://www.egroups.com - Simplifying group communications

#82 From: crengifo@...
Date: Sun Sep 19, 1999 3:12 pm
Subject: [PBML] Re: Testing CGI scripts
crengifo@...
Send Email Send Email
 
If your PC have installed Windows 95 or Windows 98,
then you can use perl for win32.

1. Download Activestate Port (APi519.exe).

ActiveState Port is available at:
http://www.ActiveState.com/ActivePerl

**** Note:
If your PC have installed Windows 95 then you'll need
DCOM for Windows 95 for using ActivePerl port.

dcom95.exe is available at:
http://www.microsoft.com/com/resources/downloads.asp
****

2. Download OmniHTTPd server (ohttpd101.exe).

Omnihttpd server is available at:
http://www.omnicron.ab.ca/httpd/


3. Install Activesate port and OmniHTTPd server. These
softwares are installed themselves at

c:\perl    (Activestate Port)
c:\httpd   (OmniHTTPd)

Also, you can use Gurusary Sarathy port (available at
http://www.perl.com/cpan-local/ports/win32/standard/x86)
and the Apache server.

Gurusary Sarathy port (perl5.00402-bindist04-bc.zip) is
available at http://www.perl.com/CPAN/authors/id/GSAR/

Apache server is available at
http://apache.koala.ie/

I'm using the Activestate Port (APi519.exe) and the
Omnihttpd server (ohttpd101.exe) on Windows 98. Also,
I have used those programs on Windows 95 and they ran
fine.

3. Remember:
- Rename your scripts (myscript.cgi to myscript.pl) when
you run these on the server.

- Your site address is "http://127.0.0.1" or localhost.


Ok, It is all. I hope this helps.


----
Send reply to:   perl-beginner@egroups.com
Date sent:       Wed, 08 Sep 1999 09:15:19 -0700
From:            fenners@...
To:              perl-beginner@egroups.com
Subject:         [PBML] Testing CGI scripts

> I am new to the Internet and I am steadily getting my head around how
> things work having spent a long time in the IT industry using COBOL
> etc.
>
> I now know that in order to store/process data submitted on a form I
> need a CGI script program to do the work.
>
> I am about to embark on a project that will require me to write such a
> script. I intend to write this in Perl.
>
> My question is this....
>
> In order to test my ideas, do I need to have this program set up on a
> server somewhere (my ISP provider does not provide such facilities -
> Freeserve) or can I store the program on my own PC while I'm developing
> my idea? I would hope that I could get my HTML to point to the code on
> my own PC while I am testing.
>
> I would be grateful for any advice.
>
> Ian Fenelon
>
>
>
> ------------------------------------------------------------------------
> MyPoints-Free Rewards When You're Online.
> Start with up to 150 Points for joining!
> http://clickhere.egroups.com/click/805
>
>
> eGroups.com home: http://www.egroups.com/group/perl-beginner
> http://www.egroups.com - Simplifying group communications
>
>

Carmelo Rengifo A.
PC Maracay: http://www.bebezau.net/maracay/index.shtml
The Best of Perl (Tutors): http://www.bebezau.net/perl/index.shtml
Yahoo Tutor: http://members.tripod.com/~crengifo/tyahoo/

#83 From: james@... (James Fox)
Date: Tue Sep 21, 1999 4:35 pm
Subject: [PBML] stop download and %s
james@...
Send Email Send Email
 
Hi there,

I am running a perl script called subscribe.pl (on WinNT), this
script basically runs fine, however, if I type in
http://myaddress.com/subscribe.pl - it lets me download the script!
- bit of a security problem, how can I overcome this?

Another thing, in Windows NT server, I have had to associate .pl
files with perl.exe, I have found I had to add '%s %s' after the
perl.exe.
Can anyone tell me what these %s things do?

Cheers

james

:: James Fox
:: DJ Associates
:: Tel: +44 (0)114 2210525
:: Fax: +44 (0)114 2493450

#84 From: "Smith, Eric - WPAFB/YSXOI" <Eric.Smith@...>
Date: Tue Sep 21, 1999 4:43 pm
Subject: [PBML] Re: stop download and %s
Eric.Smith@...
Send Email Send Email
 
> Another thing, in Windows NT server, I have had to associate .pl
> files with perl.exe, I have found I had to add '%s %s' after the
> perl.exe.
> Can anyone tell me what these %s things do?

From the Win32 FAQ (faq6) ...

When a script is executed, the first %s will be replaced by the full path to
the script, and the second %s will be replaced by the script parameters.

> - Eric D. Smith - Webmaster
>    B-2 Program Office - (937) 656-5256
>    mailto:eric.smith@...
>    B-2 Web Support - mailto:webmaster@...
    Perl makes easy things easy and hard things possible

#85 From: "Oliver Manickum" <oliver@...>
Date: Tue Sep 21, 1999 4:53 pm
Subject: [PBML] Re: stop download and %s
oliver@...
Send Email Send Email
 
Hi James,
 
As far as I know,  it depends on the server that you are running on.  eg. For IIS4 you have to set the association for the file in it - in IIS = right click on the domain name and then go to properties and  click on the home directories tab.  From there click on configuration and then click on ADD from the APP Mappings tab.  Give it the location to the perl binary eg. c:\perl\bin\perl.exe and the extention pl ,  you can leave the next field blank.  Save all the settings and try it again .  The Web server should run the Perl file now and not download it.
 
- Oliver Manickum
 
----- Original Message -----
From: James Fox
Sent: Tuesday, September 21, 1999 6:35 PM
Subject: [PBML] stop download and %s

Hi there,
I am running a perl script called subscribe.pl (on WinNT), this script basically runs fine, however, if I type in http://myaddress.com/subscribe.pl - it lets me download the script! - bit of a security problem, how can I overcome this?
Another thing, in Windows NT server, I have had to associate .pl files with perl.exe, I have found I had to add '%s %s' after the perl.exe.
Can anyone tell me what these %s things do?
Cheers
james
:: James Fox
:: DJ Associates
:: Tel: +44 (0)114 2210525
:: Fax: +44 (0)114 2493450

Click Here!
eGroups.com home: http://www.egroups.com/group/perl-beginner
www.egroups.com - Simplifying group communications

#86 From: "Oliver Manickum" <oliver@...>
Date: Tue Sep 21, 1999 4:54 pm
Subject: [PBML] Re: stop download and %s
oliver@...
Send Email Send Email
 
Oh and don;t for get to add the %s %s after setting the location C:\perl\bin\perl.exe %s %s
----- Original Message -----
Sent: Tuesday, September 21, 1999 6:43 PM
Subject: [PBML] Re: stop download and %s

> Another thing, in Windows NT server, I have had to associate .pl > files with perl.exe, I have found I had to add '%s %s' after the > perl.exe.
> Can anyone tell me what these %s things do?
>From the Win32 FAQ (faq6) ...
When a script is executed, the first %s will be replaced by the full path to
the script, and the second %s will be replaced by the script parameters.
> - Eric D. Smith - Webmaster
> B-2 Program Office - (937) 656-5256
> mailto:eric.smith@...
> B-2 Web Support - mailto:webmaster@...
Perl makes easy things easy and hard things possible

click here
Click Here!
eGroups.com home: http://www.egroups.com/group/perl-beginner
www.egroups.com - Simplifying group communications

#87 From: tlowery@...
Date: Sat Oct 9, 1999 6:56 am
Subject: [PBML] Re: stop download and %s
tlowery@...
Send Email Send Email
 
> Oh and don;t for get to add the %s %s after setting the location
C:\perl\bin\perl.exe %s %s

Even better is:
c:\perl\bin\perl.exe -Tw %s %s
This ensures scripts are executed with warning and tainted.

>   ----- Original Message -----
>   From: Smith, Eric - WPAFB/YSXOI
>   To: 'perl-beginner@egroups.com' ; 'james@...'
>   Sent: Tuesday, September 21, 1999 6:43 PM
>   Subject: [PBML] Re: stop download and %s
>
>
> > Another thing, in Windows NT server, I have had to associate .pl
> > files with perl.exe, I have found I had to add '%s %s' after the
> > perl.exe.
> > Can anyone tell me what these %s things do?
>
> >From the Win32 FAQ (faq6) ...
>
> When a script is executed, the first %s will be replaced by the full
path to
> the script, and the second %s will be replaced by the script
parameters.
>
> > - Eric D. Smith - Webmaster
> >    B-2 Program Office - (937) 656-5256
> >    mailto:eric.smith@...
> >    B-2 Web Support - mailto:webmaster@...
>    Perl makes easy things easy and hard things possible

#88 From: james@... (James Fox)
Date: Mon Oct 11, 1999 10:02 am
Subject: [PBML] Toilet Questionnaire
james@...
Send Email Send Email
 
Although this has *nothing* to do with perl, I wondered if you
wouldn't mind filling out this anonymous questionnaire on toilet
habits at-

http://www.whatsgoingon.demon.co.uk/plop

(its for a student who is trying to re-design the toilet!)
Thanks


:: James Fox
:: DJ Associates
:: Tel: +44 (0)114 2210525
:: Fax: +44 (0)114 2493450

#89 From: "Lenny van Rensburg" <lenny.vrensburg@...>
Date: Wed Oct 13, 1999 9:47 am
Subject: [PBML] Sending Mail
lenny.vrensburg@...
Send Email Send Email
 
Hi, can you please tell me were to start looking for information inconnection
with sending mail from out a Perl program to a Groupwise user, we need to send a
output file to the users concern.
If you can help me I would really appriciate it. We are using Linux Redhat 6.1.

#90 From: james@... (James Fox)
Date: Wed Oct 13, 1999 11:40 am
Subject: [PBML] Lyris
james@...
Send Email Send Email
 
Does anyone know how to use perl scripts to access a lyris
database?

Regards

James

:: James Fox
:: DJ Associates
:: Tel: +44 (0)114 2210525
:: Fax: +44 (0)114 2493450

Messages 61 - 90 of 27470   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help