LWP

2002-01-20 Thread Daniel Llewellyn
ok, looking through the archive - all the way down the 18000 posts, I have worked out that LWP is my friend. However, I have also found that the docs are rather sparse, and not very helpful. My task, is to create a client to access a website that uses cookies for session management, and be able to

Re: how do I load a new page?

2002-01-20 Thread Ahmed Moustafa
I think your script needs to return something to the broswer. I.E. #Code begins print "content-type text/html\n\n"; print "Done"; #Code ends I hope that helps. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: just bragging

2002-01-20 Thread Jonathan E. Paton
> Guess what I found!!! and it works (mad scientist > laugh) > > $password=~tr/A-Z/a-z/; > $password=~tr/a-z0-9/_/c; I think you really meant: ($password = lc $password) =~ tr/a-z0-9/_/c; Jonathan Paton __ Do You Yahoo!? Everything you'll

RE: Substitution formats

2002-01-20 Thread Gary Hawkins
I'm a big fan of s###. Easy for me to read. /g > -Original Message- > From: Troy May [mailto:[EMAIL PROTECTED]] > Sent: Saturday, January 19, 2002 11:45 PM > To: Perl Beginners > Subject: Substitution formats > > > Hello, > > I only knew of one way to do them: s/// > > But japhy on

Re: STDOUT from system call

2002-01-20 Thread Craig Inman
No, I'm not trying to capture the output of any of these. 'zowner' tells who the file belongs to, if it fails, it will not return any output. I have tried using if (system ("zowner $claims[0]") != 1) then claimsubmit the file but for some reason the 'zowner' program does not consistently ret

A few Great Modules

2002-01-20 Thread Matt C.
For you experienced programmers, this post may be old news. For the rest of us, as we move into writing more serious programs we'll discover many of these for the first time. This is a small list of Great Modules which have REALLY helped me recently. I figured I would share a few. Data::Dumper -

Re: A few Great Modules

2002-01-20 Thread Chris Ball
On Sun, Jan 20, 2002 at 08:06:51AM -0800, Matt C. wrote: > This is a small list of Great Modules which have REALLY helped me > recently. I figured I would share a few. Matt, I really enjoyed this post. Does anyone else want to share some CPAN modules or techniques they've found useful recentl

Re: $~ ?

2002-01-20 Thread Roger C Haslock
Investigate English.pm, where the special symbols are given Engilsh names. Practise using it until bored! - Roger - - Original Message - From: "yun yun" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 19, 2002 3:40 PM Subject: $~ ? > I found in perl samples many str

Re: Pattern Matching - Remove Alpha

2002-01-20 Thread Roger C Haslock
Do you want to do this:- @numbers = split /[a-zA-Z]+/,$stat; # or @numbers = split /[^\d]+/,$stat; ? - Roger - - Original Message - From: "Michael Fowler" <[EMAIL PROTECTED]> To: "Tanton Gibbs" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, January 19, 2002 12:28 AM Subjec

Re: I cant run perl from the dos command line

2002-01-20 Thread Roger C Haslock
What happens when perl -h ? - Original Message - From: "rabs" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 18, 2002 11:32 PM Subject: I cant run perl from the dos command line > > I am running ActivePerl 5.61.629 on Windows 98. It worked fine until > yesterday

Re: STDOUT from system call

2002-01-20 Thread Roger C Haslock
open SYSOUTPUT, " system( $systemcall ) | " or die "$0 some complaint here $!"; $systreturn = or die "$0 no return from system call $!"; - Original Message - From: "Craig Inman" <[EMAIL PROTECTED]> To: "John W. Krahn" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, January 20

Re[2]: A few Great Modules

2002-01-20 Thread Daniel Gardner
Sunday, January 20, 2002, 4:27:10 PM, Chris Ball wrote: > I really enjoyed this post. Does anyone else want to share some CPAN > modules or techniques they've found useful recently? > My plaything of recent times is Leon Brocard's GraphViz.pm module, which > allows you to graph from perl. There

finishing a script

2002-01-20 Thread Chris Zampese
Hi All, Just needing help regarding ending a script properly. I have a script which I use basically to send an email consisting of the data entered in a form. The start looks like this.. #!f:\intranet\cgi-bin\bin\perl.exe -w use CGI ':standard'; use Net::SMTP; Then I use... $objMail=Ne

Running scripts within browsers

2002-01-20 Thread Naveen Parmar
Hello, My activeperl installation was fine. When I try to run my example Perl scripts within IE, the browser does not even recognize them?? Any ideas??? - NP _ Get your FREE download of MSN Explorer at http://explorer.msn.com/in

Re: Re[2]: A few Great Modules

2002-01-20 Thread Matt C.
Immediately grabbed the GraphViz library and pulled the perl modules down from CPAN. Thanks for the tip. Within a few minutes you've got a picture of your tables, structures, whatever. Awesome. Keep 'em coming!! Matt PS all hail CPAN --- Daniel Gardner <[EMAIL PROTECTED]> wrote: > Sunday, Janu

Re: STDOUT from system call

2002-01-20 Thread John W. Krahn
Craig Inman wrote: > > No, I'm not trying to capture the output of any of these. 'zowner' tells who the > file belongs to, if it fails, it will not return any output. I have tried using > > if (system ("zowner $claims[0]") != 1) > then claimsubmit the file > > but for some reason the 'zowne

Re: Substitution formats

2002-01-20 Thread Jeff 'japhy' Pinyan
On Jan 19, Troy May said: >I've tried some other formats with brackets, parenthesis, etc. Nothing else >works. You've done something wrong, then. If you use <, {, (, or [, you match it up with its mirror image, >, }, ), or ]. Any other NON-word NON-whitespace character can be used, and is mat

Re: Running scripts within browsers

2002-01-20 Thread Ahmed Moustafa
Naveen, You don't run a perl, if you mean a cgi script, in a browser. You run it under a web server, which supports cgi. Naveen Parmar wrote: > Hello, > > My activeperl installation was fine. When I try to run my example Perl > scripts within IE, the browser does not even recognize them?? >

Re: Running scripts within browsers

2002-01-20 Thread Richard Crawford
Naveen, If you want to have Perl doing your CGI stuff on your computer, then you need to have a web server working on your computer and you need to have it configured to work with Perl. If you're using ActiveState, then chances are that you're using PWS or IIS, unfortunately. Get yourself a

Scrolling text box placing carrige returns in text file.

2002-01-20 Thread Daniel Falkenberg
Hey All, I have just created a perl/cgi program that contains a scrolling text box. This text box will grab a small text file from a DIR and placed this text file in the HTML scrolling text file. A user is now able to chage and modify the contents in here but when the user goes and submits the

Re: Scrolling text box placing carrige returns in text file.

2002-01-20 Thread sachin balsekar
Dear Dan, u cud use chomp to remove the newline character or u cud search and replace using regex... as for the HTML part...if u dont want to user to edit the contents of a text file, you cud use READONLY option of the textbox...but its not compatible across browsers... hope this clears u r

Re: Scrolling text box placing carrige returns in text file.

2002-01-20 Thread sachin balsekar
Dear Dan, u cud use chomp to remove the newline character or u cud search and replace using regex... as for the HTML part...if u dont want to user to edit the contents of a text file, you cud use READONLY option of the textbox...but its not compatible across browsers... hope this clears u r