Re: I am begginer using CGI andperl, please help

2002-02-05 Thread Jaishree Rangaraj
Hello, I use win2000 and recently installed Active perl. Small perl(.pl,.cgi,.plx) can be run form dos commnad prompt. How do I run the the form-to-e-mail( html and cgi), those kind of scripts. I guess, I need a webserver. But how do I do it. I am using my home computer for this. Please can u

RE: I am begginer using CGI andperl, please help

2002-02-05 Thread yahoo
Win2K comes with IIS 5.0 which can run CGI or embedded ASP (usually JScript or VBscript but can be PerlScript if you let ActiveSTate make the relevant changes and you have IIS running) but it won't be installed by default. Can you check if IIS is installed using CONTROL PANEL, ADD REMOVE

Re: Re: Is there a good CGI.pm tutorial online?

2002-02-05 Thread Mark Bergeron
If you have not checked out the CGI.pm site you should. I contains a lot of ready to go examples. You can cut and paste onto your machine and really play around with them. Here is the links: http://www.wiley.com/legacy/compbooks/stein/source.html

Windows Text editor

2002-02-05 Thread Patrick
Can anyone recommend a decent Text editor for windows 98 that I can use for CGI scripts. Notepad seems to show the carriage returns all of a sudden and this is creating problems just trying to get scripts to run on the server. I dont have unix or linux on my pc so i cant use pico. Pat Check out

Re: Windows Text editor

2002-02-05 Thread Vinicius Jose Latorre
GNU Emacs for Windows NT and Windows 95 http://www.cs.washington.edu/homes/voelker/ntemacs.html Can anyone recommend a decent Text editor for windows 98 that I can use for CGI scripts. Notepad seems to show the carriage returns all of a sudden and this is creating problems just trying to get

passing parameters

2002-02-05 Thread Rahul Garg
Well,I have a HTML form which is calling a perl script.In form there is a multiple selector box ,now when 2-3 lines are selected each is passed with the same name and different value pair. How to capture all values by parameter name ie there are name = value1 name = value2 name= value3 @values

RE: cache

2002-02-05 Thread yue lu
Hi Rob, Thank you, it worked like a magic. Emily From: Hanson, Robert [EMAIL PROTECTED] To: 'yue lu' [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: cache Date: Fri, 1 Feb 2002 17:54:52 -0500 I believe nocache is for Netscape only. For IE you should use expires. (or was it the other way

RE: passing parameters

2002-02-05 Thread Hanson, Robert
This works fine for me... #!/usr/bin/perl use CGI; $query = new CGI; @values = $query-param('name'); print Content-type: text/plain\n\n; print @values; Rob -Original Message- From: Rahul Garg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 9:45 AM To: [EMAIL PROTECTED]

cgi in the middle of HTML page

2002-02-05 Thread Al Hospers
I want to have a web page where a CGI generated table appears in the midst of a bunch of standard HTML. I already have the table data being pulled from a database generating a layout that looks good. however, I would prefer not to generate the entire page in code if possible. yes I know I could

Re: cgi in the middle of HTML page

2002-02-05 Thread Jan Gruber
Hi, Al ! I would prefer not to generate the entire page in code if possible. yes I know I could do it all using CGI.pm but if I do then the client/designer will have to get into the code to change the layout of the page that's not a really good thing. Visit your local CPAN mirror for

Re: cgi in the middle of HTML page

2002-02-05 Thread Greg Jetter
On Tuesday 05 February 2002 07:09 am, Al Hospers wrote: I want to have a web page where a CGI generated table appears in the midst of a bunch of standard HTML. I already have the table data being pulled from a database generating a layout that looks good. however, I would prefer not to

RE: cgi in the middle of HTML page

2002-02-05 Thread Marty Landman
At 12:55 PM 2/5/02 -0500, Hanson, Robert wrote: As far as using this method over HTML::Template you need to be able to predict future expansion to your code (which may be impossible), and as long as you won't need other features (or don't mind rolling your own) then Marty's is as good as any

RE: Hexadecimal Dictionary

2002-02-05 Thread Hanson, Robert
I wrote this routine to do the conversion for me. When you run it at the command line is takes a string as input, and prints out the hex val of each char in the string. #!/usr/bin/perl # c2hex.pl - Converts characters to hex values. my $chars = join(' ',@ARGV); for ( split(//, $chars) ) {

Re: Hexadecimal Dictionary

2002-02-05 Thread Jeremy Webster
http://www.neurophys.wisc.edu/www/comp/docs/ascii.html On Tuesday 05 February 2002 01:32 pm, Fred Sahakian wrote: Anyone know of a good online Hexadecimal Dictionary? I know that %OD%OA is a carriage return, but I need to know what the code is for a quote mark () as well as a few

Re: Windows Text editor

2002-02-05 Thread Mo Holkar / UKG
At 13:34 05/02/02, Pat wrote: Can anyone recommend a decent Text editor for windows 98 that I can use for CGI scripts. Notepad seems to show the carriage returns all of a sudden and this is creating problems just trying to get scripts to run on the server. I dont have unix or linux on my pc so i

Re: Windows Text editor

2002-02-05 Thread Richard Crawford
In Windows, I usually use HomeSite 5.0, available from Allaire. You might also look into Komodo from ActiveState, which has both a Windows and Linux version available. You can get a trial version from ActiveState's home page. On Tue, 2002-02-05 at 10:54, Mo Holkar / UKG wrote: At 13:34

Re: Windows Text editor

2002-02-05 Thread Marty Landman
At 06:54 PM 2/5/02 +, Mo Holkar / UKG wrote: At 13:34 05/02/02, Pat wrote: Can anyone recommend a decent Text editor for windows 98 that I can use for CGI scripts. Notepad seems to show the carriage returns all of a sudden and this is creating problems just trying to get scripts to run on the

RE: Windows Text editor

2002-02-05 Thread Al Hospers
I've been using OptiPerl this past year I think it works fairly well. it's got a syntax checker hilighting that make things easier and there is a regex checker as well. it's a bit quirky in places for a Windows program there are a bug or two, but it's not at all bad for a minimal cost. (it's

Re: Hexadecimal Dictionary

2002-02-05 Thread Randal L. Schwartz
Fred == Fred Sahakian [EMAIL PROTECTED] writes: Fred I know that %OD%OA is a carriage return, but I need to know what Fred the code is for a quote mark () as well as a few Fred others..thanks! You don't need to know if you're using the right tools. Look into URI::Escape, found in the LWP

Re: Windows Text editor

2002-02-05 Thread Octavian Rasnita
Which of these editors show the number of the current line in the status bar? This is helpfull to track the error messages from the log file. Teddy, My dear email address is [EMAIL PROTECTED] - Original Message - From: Marty Landman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday,

Newbe looping questions

2002-02-05 Thread Mark Richmond
How do I loop until the value of variable changes? In this example at some point the value of $foo will change and I can continue It seems that I need to re-eval the value some how $bar = foo ; $foo = qx(os_cmd); # sets $foo to foo while ($foo eq $bar) { $foo = qx(os_cmd); print

How can my script wait a moment before going to another URL?

2002-02-05 Thread li jidong
Here's it: system(..); #(it takes quite a while) Location: URL How can I let system() finish its work and then go to the URL? Thanks __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To

re: time question

2002-02-05 Thread david wright
Hi All, How can I check if directory is older then X days/hours thanks Amit run from command line. perl -e 'print (-M directory)' - M, Returns the age of OPERAND in days when the program started.

Re: How can my script wait a moment before going to another URL?

2002-02-05 Thread Jan Gruber
Hi ! system(..); #(it takes quite a while) Location: URL How can I let system() finish its work and then go to the URL? AFAIR, system() won't return unless it is finished or the process has been killed. So you wont need an additional sleep() command. HTH, -- Jan Gruber

RE: Newbe looping questions

2002-02-05 Thread John Edwards
You are right to use the while loop. However, if you are continually running the same command and storing that value in $foo, how can you expect it to change? Does the external program change it's return value? Can you explain in more detail what you are trying to achieve. This example shows

Re: regular expression to nfa

2002-02-05 Thread Jonathan E. Paton
--- sanilkumar [EMAIL PROTECTED] wrote: how to convert regular expression to nfa nfa to dfa using perl/c/c++ please help me Homework! Unfortunately, due to limitations in ASCII graphics this is a VERY difficult topic to explain. Also, you make no indication of your own understanding -

Re: simple question

2002-02-05 Thread Jonathan E. Paton
--- Stuart Clark [EMAIL PROTECTED] wrote: How do I replace the letter M with 20 spaces. s/M/\s[20]/; # dosen't seem to work :-( Hey, how come few seem to have noticed... \s is a CHARACTER CLASS. This means it represents a group of characters, so asking for twenty of these on the

Re: simple question

2002-02-05 Thread Jonathan E. Paton
--- Stuart Clark [EMAIL PROTECTED] wrote: How do I replace the letter M with 20 spaces. s/M/\s[20]/; # dosen't seem to work :-( Hey, how come few seem to have noticed... \s is a CHARACTER CLASS. This means it represents a group of characters, so asking for twenty of these on the

Perl and Visual Basic

2002-02-05 Thread Ben Crane
Hi List, Perls useful approach to string/txt processing is something I would like to incorporate into a Visual Basic Application. I am going to be using the VB program to analyze HTML pages and want to highlight various tags (that can also be replaced)--doing this in VB is possible but annoying,

to know about new computer h\w

2002-02-05 Thread sanilkumar
i want to present a seminar on new computer hardwares next week. i want to know the technical details of various newly developed computers.please send me text only if possible. thanking you, -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: to know about new computer h\w

2002-02-05 Thread John Edwards
www.google.com Stop wasting our time and bandwidth. That post was so off topic, badly worded and misconceived that your thanking you comes across as pure sarcasm... John -Original Message- From: sanilkumar [mailto:[EMAIL PROTECTED]] Sent: 05 February 2002 10:01 To: [EMAIL PROTECTED]

sockets

2002-02-05 Thread Scott L Ryan
Can anyone explain to me why the output of the script called within this script prints the output to the screen and not to the client connected to the socket. Many thanks #!/usr/local/bin/perl -w use Socket; if (!@ARGV) { print Script cannot be called with no Port Number doh!\n; }

RE: to know about new computer h\w

2002-02-05 Thread Jonathan E. Paton
I want to present a seminar on new computer hardwares next week. I want to know the technical details of various newly developed computers. Please send me text only if possible. Stop wasting our time and bandwidth. That post was so off topic, badly worded and misconceived that your

RE: distinguishing positive and negative values

2002-02-05 Thread John Edwards
This should work. I've used an array to simulate your text files. The first regex (as you already had) matches the lines without a - sign. I've modified your second regex to look for the - sign, thus it picks up negative values only. @array = (3034364717283459322a-15.32zM042001H,

Re: sockets

2002-02-05 Thread walter valenti
What's the scottscript script??? It is called by a system, function and executing in a self space. If this script print on STDOUT, for this script scottscript,STDOUT is the screen, don't the file (is the file for the script viewed in this mail). P.S. Sorry for my bad english . Walter

Re: distinguishing positive and negative values

2002-02-05 Thread John W. Krahn
Stuart Clark wrote: Hi, Hello, How do I distinguish between positive and negative values. $ perl -e' for $value ( -15.32, 243.56, -2.45 ) { if ( abs $value == $value ) { print $value has a positive value.\n; } else { print $value has a negative value.\n;

Re: time question

2002-02-05 Thread Matt C.
Check out perldoc -f stat stat returns a bunch of useful info for you, including modification time, access time, size, etc. Matt __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe,

RE: to know about new computer h\w

2002-02-05 Thread Peter Scott
We can always make it on-topic: #!/usr/bin/perl -w use strict; use WWW::Search; use LWP::Simple; use HTML::TreeBuilder; use Mail::Send; my $PAIN = 10; my $luser = shift; my $search = WWW::Search(insert favorite search agent)-new; my $query = WWW::Search::escape_query(@ARGV);

open socket

2002-02-05 Thread Roman Fordinal
why i open socket with Socket(); to host localhost, protocol tcp port 110 {for POP3} i can it make only with IO::Socket::INET-new(PeerAddr=$host, PeerPort=$port, Proto=$proto); : :.. Roman Fordinal :.: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED]

parameter passing

2002-02-05 Thread Rahul Garg
Well,I have a HTML form which is calling a perl script.In form there is a multiple selector box ,now when 2-3 lines are selected each is passwd with adifferent name value pair. How to capture all values bya parameter name Thanks, Rahul

Re: parameter passing

2002-02-05 Thread Michael Eggleton
use Getopt::Long; GetOptions( option1=s = \$option1value ); parameters are passed to the script like this myscript --option1=option1value or myscript --option1 option1value Hope this helps. Michael D. Eggleton http://www.gorealnetworks.com mailto:[EMAIL PROTECTED] -Original

socket help

2002-02-05 Thread Scott L Ryan
I am creating a socket connection. what I want the server to do is print a message so that when the client connects, it sees a message.. eg: Msg But my code doesn't print that until it the server receives something from the client.. Here is the code.. I tried using the send ( ) command but

parameter passing

2002-02-05 Thread Rahul Garg
Well,I have a HTML form which is calling a perl script.In form there is a multiple selector box ,now when 2-3 lines are selected each is passed with the same name and different value pair. How to capture all values by parameter name ie there are name = value1 name = value2 name= value3 @values

system command

2002-02-05 Thread Ned Cunningham
What is the proper and best way to use the system command??? System('command'); Or (system 'command'); Please help! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Running the system command

2002-02-05 Thread Ned Cunningham
What is the proper and best way to use the system command??? System('command'); Or (system 'command'); Please help! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Running the system command

2002-02-05 Thread Mark Richmond
-Original Message- From: Ned Cunningham [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 9:49 AM To: '[EMAIL PROTECTED]' Subject: Running the system command What is the proper and best way to use the system command??? System('command'); Or (system 'command');

Re: Running the system command

2002-02-05 Thread KeN ClarK
perldoc -f system and it is system(command); or you could use backticks as in: $now = the time is now .`date`; i bet someone will comment about the difference between using system and backticks (don't backticks capture the standard output?) -k And on 9:49am, Ned Cunningham jibba jabba'd:

Perl script for parsing a DBX file?

2002-02-05 Thread Octavian Rasnita
Hi all, I am a new member. Do you know if there is a Perl script which parse the DBX files (the mail boxes from Outlook Express) and get all the email addresses? Thanks! Teddy, My dear email address is [EMAIL PROTECTED] _ Do You

use strict

2002-02-05 Thread Octavian Rasnita
Hello all, I am a new member. please tell me what is used for the following line in a script: use strict; I saw that if I use it, this make sometimes my scripts to have errors and without it, they works. Thanks! Teddy, My dear email address is [EMAIL PROTECTED]

Re: use strict

2002-02-05 Thread Jason Purdy
*chuckle* - this should open a can of worms... be sure to check out the technical explanation: perldoc strict I believe there's also a thread on Perlmonks if you search on 'use strict and warnings' (for some reason, Perlmonks times out on me, so I can't provide the exact link/search term).

Re: file test doesn't seem to be working

2002-02-05 Thread John Mooney
Brett W. McCoy [EMAIL PROTECTED] 2/4/2002 9:28:42 PM On Mon, 4 Feb 2002, david wright wrote: i can't use the ternary operator like this? (damn waste if not) thanks. foreach $dup (@array){ (-d $dup) ? print yes: $dup \n: print no: $dup \n; ) Yes, that is an incorrect way to use the

Re: use strict

2002-02-05 Thread Frank
On Tue, Feb 05, 2002 at 09:18:17AM -0800, Octavian wrote: Hello all, I am a new member. please tell me what is used for the following line in a script: use strict; I saw that if I use it, this make sometimes my scripts to have errors and without it, they works. ---end quoted text---

Re: file test doesn't seem to be working

2002-02-05 Thread Brett W. McCoy
On Tue, 5 Feb 2002, John Mooney wrote: Actually, it is not an incorrect way I believe, so much as he is using slightly incorrect syntax. From the Nutshell ... I really meant 'incorrect' in its usage, not the syntax -- he was using it in a void context. ... I think the key is that he was

Return multiple arrays

2002-02-05 Thread Mike Garner
I'm going back through some old code and trying to clean things up, apply new tricks, and make sure everything is running in strict mode. Doing this I have encountered a problem. I have a subroutine that calls another subroutine, passing one array to the second for processing. I need the

Re: Return multiple arrays

2002-02-05 Thread Adam Turoff
On Tue, Feb 05, 2002 at 08:52:44AM -0700, Mike Garner wrote: I have a subroutine that calls another subroutine, passing one array to the second for processing. I need the second sub to return 3 arrays to the first sub. I can't seem to get this to workwell I can return the data from

Re: file test doesn't seem to be working

2002-02-05 Thread John Mooney
Brett W. McCoy [EMAIL PROTECTED] 2/5/2002 10:35:48 AM That's just more a matter of style -- I get the willies when subroutines modify global values invisibly. Great advice. thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: simple question

2002-02-05 Thread Randal L. Schwartz
Jonathan == Jonathan e paton [EMAIL PROTECTED] writes: Jonathan --- Stuart Clark [EMAIL PROTECTED] wrote: How do I replace the letter M with 20 spaces. s/M/\s[20]/; # dosen't seem to work :-( Jonathan Hey, how come few seem to have noticed... \s is a CHARACTER Jonathan CLASS. This means

use lib question

2002-02-05 Thread Kingsbury, Michael
I want to have two different variable for use lib depending on a cmd line switch (one for the production libraries, one for development libraries). They exist in different directories. It appears that it uses the use lib at compilation time, rendering an if statement useless. Anyone have a

Re: open socket

2002-02-05 Thread walter valenti
I don't understand your question. Do you don't want use IO::Socket but the low level socket function Walter why i open socket with Socket(); to host localhost, protocol tcp port 110 {for POP3} i can it make only with IO::Socket::INET-new(PeerAddr=$host, PeerPort=$port,

Re: use lib question

2002-02-05 Thread Jon Molin
use BEGIN: perl -e 'BEGIN {if (`pwd` =~ /some_path/){use lib (/usr);}else{use lib (/home);}}' i usually unshift @INC but i've heard that's not a good way to do it, not sure why though. /Jon Kingsbury, Michael wrote: I want to have two different variable for use lib depending on a cmd line

RE: use lib question

2002-02-05 Thread Bob Showalter
-Original Message- From: Kingsbury, Michael [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 11:31 AM To: '[EMAIL PROTECTED]' Subject: use lib question I want to have two different variable for use lib depending on a cmd line switch (one for the production

Re: use lib question

2002-02-05 Thread Jeff 'japhy' Pinyan
On Feb 5, Kingsbury, Michael said: I want to have two different variable for use lib depending on a cmd line switch (one for the production libraries, one for development libraries). They exist in different directories. It appears that it uses the use lib at compilation time, rendering an if

Re: use lib question

2002-02-05 Thread Brett W. McCoy
On Tue, 5 Feb 2002, Kingsbury, Michael wrote: I want to have two different variable for use lib depending on a cmd line switch (one for the production libraries, one for development libraries). They exist in different directories. It appears that it uses the use lib at compilation time,

select text

2002-02-05 Thread Roman Fordinal
i need get e-mail adrees from string $email=Name LastName [EMAIL PROTECTED] to $email=[EMAIL PROTECTED] why get it : : :. s pozdravom :.. Roman Fordinal :.. project manager :.: :.: WebCom s.r.o. - Internet Advertising Agency

GURU question about use and modules...

2002-02-05 Thread Nikola Janceski
Okay... this one is way out there...and I can't find answers in the docs for this one. I currently am working on a script for use on NT4 and SunOS, (windows and unix)... now I thought that the following code would work... but no. if ($^O =~ /^(ms)?(win|dos)(32|nt)?$/i){ use lib

Re[2]: open socket

2002-02-05 Thread Roman Fordinal
Tuesday, February 05, 2002, 5:34:42 PM, you wrote: wv I don't understand your question. Do you don't want use IO::Socket but the low level socket function the IO::Socket function cannot timeouts (in FTP connection, POP3...) :( and more FTP servers is too stupid :) and my client wait for

Re: Return multiple arrays

2002-02-05 Thread Frank
On Tue, Feb 05, 2002 at 11:09:03AM -0500, Brett wrote: my $arrayref1 = [1, 2, 3]; my ($arrayref2, $arrayref3) = sub2($arrayref1); sub sub2 { my($arrayref5, ...); my $arrayref1 = shift; return $arrayref6, $arrayref7; } ---end quoted text--- A really nice piece of

Re: select text

2002-02-05 Thread Jonathan E. Paton
--- Roman Fordinal [EMAIL PROTECTED] wrote: I need to get the email address from string: $email=Name LastName [EMAIL PROTECTED] How do I extract it? [Above converted to English - JEP] ($email = $email ) =~ /\([^]+)\$/; Jonathan Paton

RE: select text

2002-02-05 Thread John Edwards
You can use the following code... $email = 'Name LastName [EMAIL PROTECTED]'; $email =~ /([\w@.]+)/; $email = $1; print $email; As you seem relatively new to this, here is a breakdown $email = 'Name LastName [EMAIL PROTECTED]'; # Just define the data for this demo $email =~ /([\w@.]+)/; #

RE: select text

2002-02-05 Thread John Edwards
Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a life time. -Chinese proverb This is a beginners list, no? I thought we were here to help people learn, not provide them with solutions that may work, but they don't know how... John -Original

Re: GURU question about use and modules...

2002-02-05 Thread Jeff 'japhy' Pinyan
On Feb 5, Nikola Janceski said: now I thought that the following code would work... but no. if ($^O =~ /^(ms)?(win|dos)(32|nt)?$/i){ use lib N:/njancesk/perllib; use Win32::Process; use Win32::Event 1.00 qw(wait_any); } else { use lib /u/njancesk/perllib;

RE: select text

2002-02-05 Thread Gary Hawkins
-Original Message- From: John Edwards [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 9:25 AM To: 'Jonathan E. Paton'; [EMAIL PROTECTED] Subject: RE: select text Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a life

Re: use lib question

2002-02-05 Thread Randal L. Schwartz
Jeff == Jeff 'Japhy' Pinyan [EMAIL PROTECTED] writes: Jeff use lib $ARGV[0] eq '-foo' ? /this/path : /that/path; I don't believe @ARGV is set up early enough to do that. I'd be happy if that worked, but I'm suspicious. Have you tested this? -- Randal L. Schwartz - Stonehenge Consulting

copy files

2002-02-05 Thread Student of Perl
Hello whats the simple function to copy files? pls tell the syntax. -Jim -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: copy files

2002-02-05 Thread Jeff 'japhy' Pinyan
On Feb 5, Student of Perl said: whats the simple function to copy files? pls tell the syntax. perldoc File::Copy -- Jeff japhy Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for Regular

Re: distinguishing positive and negative values

2002-02-05 Thread Jenda Krynicky
From: Stuart Clark [EMAIL PROTECTED] How do I distinguish between positive and negative values. The values are between the a and z I want to make the refunds (negative values) go to one file And the sales (positive values) got to another Regards Stuart Clark # start

Study group for motivated people wanting to learn Perl.

2002-02-05 Thread Kevin Werckman
I'm hoping to get a small study group together that are interested in making some serious progress learning perl. I also need a few good volunteers willing to torture the group with some challenging quizes. Anyone interested, email me. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: How can my script wait a moment before going to another URL?

2002-02-05 Thread Jenda Krynicky
From: li jidong [EMAIL PROTECTED] Here's it: system(..); #(it takes quite a while) Location: URL How can I let system() finish its work and then go to the URL? system() usualy waits for the process to complete. If it doesnt in your case and you happen to run

Re: select text

2002-02-05 Thread Dave Benware
Jonathan E. Paton wrote: --- Roman Fordinal [EMAIL PROTECTED] wrote: I need to get the email address from string: $email=Name LastName [EMAIL PROTECTED] How do I extract it? [Above converted to English - JEP] ($email = $email ) =~ /\([^]+)\$/; Jonathan Paton I must

Re: use strict

2002-02-05 Thread Dave Benware
Octavian Rasnita wrote: Hello all, I am a new member. please tell me what is used for the following line in a script: use strict; I saw that if I use it, this make sometimes my scripts to have errors and without it, they works. Thanks! Teddy, My dear email address is [EMAIL

Re: Study group for motivated people wanting to learn Perl.

2002-02-05 Thread jr
Hi, I would be interested. I would be willing to donate list hosting to support it. JR - VirtualChicagoLand.com Is Your Chicagoland Resource! Visit: http://VirtualChicagoLand.com On Tue, 5 Feb 2002, Kevin Werckman wrote: I'm hoping to get a small study group together that are

Re: use lib question

2002-02-05 Thread Jeff 'japhy' Pinyan
On Feb 5, Randal L. Schwartz said: Jeff == Jeff 'Japhy' Pinyan [EMAIL PROTECTED] writes: Jeff use lib $ARGV[0] eq '-foo' ? /this/path : /that/path; I don't believe @ARGV is set up early enough to do that. I'd be happy if that worked, but I'm suspicious. Have you tested this? japhy%

Re: use lib question

2002-02-05 Thread Randal L. Schwartz
Jeff == Jeff 'japhy' Pinyan [EMAIL PROTECTED] writes: I don't believe @ARGV is set up early enough to do that. I'd be happy if that worked, but I'm suspicious. Have you tested this? Jeff japhy% bleadperl -le 'BEGIN { print @ARGV }' a b c Jeff a b c I sit corrected. :) -- Randal L.

Regex question about '\b'

2002-02-05 Thread Shawn
Hello all, In a regex, the '\b' can stand for: 1) a boundry between a word and non-word char 2) bakcspace What is the precedence for figuring out which is being called? TIA, Shawn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Study group for motivated people wanting to learn Perl.

2002-02-05 Thread Jeff 'japhy' Pinyan
On Feb 5, Kevin Werckman said: I'm hoping to get a small study group together that are interested in making some serious progress learning perl. I also need a few good volunteers willing to torture the group with some challenging quizes. I think the biggest obstacle for people learning Perl is

Re: Regex question about '\b'

2002-02-05 Thread Jeff 'japhy' Pinyan
On Feb 5, Shawn said: In a regex, the '\b' can stand for: 1) a boundry between a word and non-word char 2) bakcspace What is the precedence for figuring out which is being called? \b is ONLY backspace when found inside a character class. Everywhere else it represents a word

regex and pattern matching

2002-02-05 Thread PaulD
Hi All, Trying to figure out something that should be easy.. If $value_a contains $value_b then Problem is I don't know how to escape the entire variable $value_a so that the . is not considered a quantifier. $value_a = .com;

Re: Perl and Visual Basic

2002-02-05 Thread Jenda Krynicky
From: Ben Crane [EMAIL PROTECTED] Perls useful approach to string/txt processing is something I would like to incorporate into a Visual Basic Application. I am going to be using the VB program to analyze HTML pages and want to highlight various tags (that can also be

Re: parameter passing

2002-02-05 Thread Jenda Krynicky
From: Michael Eggleton [EMAIL PROTECTED] use Getopt::Long; GetOptions( option1=s = \$option1value ); parameters are passed to the script like this myscript --option1=option1value or myscript --option1 option1value He said the script is called by an HTML form. This would be tru

Re: regex and pattern matching

2002-02-05 Thread Jeff 'japhy' Pinyan
On Feb 5, [EMAIL PROTECTED] said: Problem is I don't know how to escape the entire variable $value_a so that the . is not considered a quantifier. You have $value_a and $value_b in the wrong place in your example. Use \Q...\E around $value_b. if ($value_b =~ /\Q$value_a\E/) { print

Re: use strict

2002-02-05 Thread dhoubrechts
Octavian Rasnita a écrit : Hello all, I am a new member. please tell me what is used for the following line in a script: use strict; I saw that if I use it, this make sometimes my scripts to have errors and without it, they works. Thanks! Teddy, My dear email address is [EMAIL

Re: Regex question about '\b'

2002-02-05 Thread Brett W. McCoy
On Tue, 5 Feb 2002, Shawn wrote: In a regex, the '\b' can stand for: 1) a boundry between a word and non-word char 2) bakcspace \b can be used inside of [] (as part of a character class) to mean a backspace, but outside, \b always means 'word boundary assertion'. If you don't want

FW: Help reqd. for collecting data

2002-02-05 Thread Anand, Pankaj
Further to below mentioned mail , How to collect ata for weekly basis , like 01/04 -- Data1 Data2 Data3 01/11 -- Data1 Data2 Data3 01/18 -- Data1 Data2 Data3 And so on One thing I can do is tail the last 7 lines of daily data file and put in some file so that I have to run the job

formatting database text

2002-02-05 Thread Hughes, Andrew
I have created a news article database where non-technical people can cut and paste articles to be stored in a mySQL database table. Everything works. However when I display these in a browser, I want to have p class=whatever/p tags around each paragraph, so that the non-technical people do not

Script to Download a file from server to a C:/D:

2002-02-05 Thread Kayren Phillips
Hello There!! I am trying to write a script that will download any file that has been requested from my server to anywhere on the requestor's local hard drive (C: /D: /F: etc.). I have been working on this script for two weeks now, not much success. Can someone help point me in the correct

RE: Study group for motivated people wanting to learn Perl.

2002-02-05 Thread Pradeep Sethi
/(.*?)\s*=\s*(.*)/ and $var{$1} = $2 while FILE; did u mean ? /(.*?)\s*=\s*(.*)/ and $var-{$1} = $2 while FILE; -Pradeep -Original Message- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 12:33 PM To: Kevin Werckman Cc: [EMAIL PROTECTED]

Perl and CGI

2002-02-05 Thread Naveen Parmar
What are the differences between Perl and CGI? Can I simply rename Perl files to .CGI and use them? What is the crossover from Perl to CGI? TIA, - NP _ Send and receive Hotmail on your mobile device: http://mobile.msn.com --

RE: Perl and CGI

2002-02-05 Thread Hanson, Robert
According to www.pcwebopaedia.com, a CGI program is defined as: A CGI program is any program designed to accept and return data that conforms to the CGI specification In short Perl is a language and CGI is not. CGI is an interface that allows you to transfer information between a CGI program

RE: Perl and CGI

2002-02-05 Thread Hanson, Robert
Here is a tutorial that will help you get started writing CGI scripts in Perl... if that was your goal. http://www.webdesigns1.com/perl/tutorial.html Rob -Original Message- From: Naveen Parmar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 5:31 PM To: [EMAIL PROTECTED]

Re: select text

2002-02-05 Thread John W. Krahn
John Edwards wrote: You can use the following code... $email = 'Name LastName [EMAIL PROTECTED]'; $email =~ /([\w@.]+)/; $email = $1; print $email; What about this valid e-mail address [EMAIL PROTECTED]? What if $1 is set from a previous match and this match fails? John -- use

  1   2   >