Re: Problem with regular expressions!!!

2003-03-19 Thread Michael Kelly
On Tue, Mar 18, 2003 at 05:53:45PM -0600, Rob Benton wrote: > It looks odd to me b/c * and ? are both quantifiers... * and ? alone are both quantifiers, but *? is a non-greedy *. -- Michael [EMAIL PROTECTED] http://www.jedimike.net/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: Function for HTML code

2003-03-13 Thread Michael Kelly
On Thu, Mar 13, 2003 at 11:32:02AM +0100, [EMAIL PROTECTED] wrote: > Hello, Hello, > which function could I use to transform characters such as '"' into code for > HTML. > Any think like: > $string='a>b'; > Func($string) return ('a>b') The HTML::Entities module can do this for you: #!/

Re: Download zip files automatically

2003-02-12 Thread Michael Kelly
On Tue, Feb 11, 2003 at 06:49:14PM +0200, Antonis Antoniou wrote: > Hi, Hi! > I would like to download from http://www.somewhere.com/zip/file.zip > through a script. Is there any module that I can do this? > This will help me download the zip files automaticaly. > > Many Thanks > Antonis Che

Re: funny characters in form field

2003-01-13 Thread Michael Kelly
On Mon, Jan 13, 2003 at 10:55:35PM +0600, LRMK wrote: > use the following sub to read post input > I got this from a book > if you only want the regxp its in this code But why use this over CGI.pm? The wheel has already been invented, and quite well I might add. -- Michael [EMAIL PROTECTED] http

Re: funny characters in form field

2003-01-12 Thread Michael Kelly
On Sat, Jan 11, 2003 at 09:41:37PM -0500, [EMAIL PROTECTED] wrote: > In a message dated 1/11/2003 8:55:37 PM Eastern Standard Time, > [EMAIL PROTECTED] writes: > > When processing the form the date in this format 3/1/2003 is converted to > > 3%2F1%2F2003. > > > > Can someone give me a regex to co

Re: IF statments -- short circuit

2002-12-24 Thread Michael Kelly
On Mon, Dec 23, 2002 at 10:35:59AM -0600, David Gilden wrote: > PERL 5.6 > OSX, Jaguar > > Goal, to check against two different passwords. > > > I think my problem is the "or" is short 'circuited' > is there a way for an IF statement to test for both > values, so that either $secret_word or $

Re: Non-caching META-tags

2002-11-21 Thread Michael Kelly
On Thu, Nov 21, 2002 at 07:19:37AM -0500, fliptop wrote: > On Wed, 20 Nov 2002 at 13:58, Michael Kelly opined: > > MK:On Wed, Nov 20, 2002 at 02:02:05PM +, Nick Malden wrote: > MK: > MK:CGI.pm doesn't support http-equiv meta-tags, according to the documentation. > MK:

Re: Non-caching META-tags

2002-11-20 Thread Michael Kelly
On Wed, Nov 20, 2002 at 02:02:05PM +, Nick Malden wrote: Hi Nick, > When writing HTML, the trick I normally use to ensure that images etc are > definitely the latest version, and not the cached version, is the > following: > > > [snip] > How does one get perl produce the equivalent of the

Re: Removing Folder/Files

2002-10-07 Thread Michael Kelly
On Sun, Oct 06, 2002 at 08:01:10AM -0500, Mike(mickako)Blezien wrote: > Hello, > > there was a dicussion earlier on this list about a module that removes > folder and files similar to the `rm -rf` command line, but for the life of > can't remember which modules does this, with some thing like r

Re: css attributes in CGI - more questions

2002-09-30 Thread Michael Kelly
On Sun, Sep 29, 2002 at 06:38:16PM +1000, Jimmy George wrote: > and both refered me to > > LIMITED SUPPORT FOR CASCADING STYLE SHEETS > from > perldoc CGI > > where is that? I am a beginner. On a Mac. With a home page serviced by a > remote ISP. No Linux contact. Assuming you're using OS 9, jus

Re: why oh why?

2002-09-18 Thread Michael Kelly
On Wed, Sep 18, 2002 at 06:09:29PM +1000, Jimmy George wrote: > Hello again World Hi Jimmy, > I am trying - half heartily right now - to get a DDMM or similar date > back from a users server to write to a file when they fill in an order > form. My first attempt of :- > > > First: SSI is

Re: [sorta OT] Re: Matt Wright's formMail

2002-05-13 Thread Michael Kelly
On 5/13/02 2:43 PM, Kevin Meltzer <[EMAIL PROTECTED]> wrote: > To sum up.. Matts code is bad. It has various security holes, is not > maintained, and is in Perl 4. The 'vendetta' has come from years of him > NOT removing his scripts from the internet (spreading cargo-cult > programming), and not

[sorta OT] Re: Matt Wright's formMail

2002-05-13 Thread Michael Kelly
On 5/13/02 10:49 AM, fliptop <[EMAIL PROTECTED]> wrote: > i think what you're missing is there's no point in trying to justify > running any version of any of matt's code - use the drop in replacements > at sourceforge or take the (quite unnecessary) risk. it's as simple as > that. Ok, I have a

Re: Vs Form post

2002-05-06 Thread Michael Kelly
On 5/6/02 6:30 AM, David vd Geer Inhuur tbv IPlib <[EMAIL PROTECTED]> wrote: > Hi, Hi David, > I am strugling with my program that list the contents of a directory. > Ones the directory contains files and you have permission it shows you a doc > icon > else it will show a directory-map followed

Re: ssi and redirects

2002-04-28 Thread Michael Kelly
On 4/28/02 11:08 AM, Mat Harrison <[EMAIL PROTECTED]> wrote: > ok, i wouldn't mind using javascript but I don't know how it would tie in > with my scripts. I want this cgi include to scan for a cookie, check the > values etc and either print the membership links or redirect to the login > page.

Re: Print Text

2002-04-12 Thread Michael Kelly
On 4/11/02 1:35 PM, Christopher Veilleux <[EMAIL PROTECTED]> wrote: Hi Chris, > I have a web page that has a multiline textbox. > > I would like to have the client be able to print only what is in the text > box. > > How can I do that? The first way that comes to mind is having a button on th

Re: POSTing to a .html URL

2002-04-04 Thread Michael Kelly
On 4/4/02 9:16 AM, David R. Baird <[EMAIL PROTECTED]> wrote: Hi David, > I have cgi script that is INCLUDEd in a web page: > > page.html: > > > > > > > > The script prints out a form. When the form's method attribute is GET ie > I assume you mean 'method="get"' here. > , it works fin

Re: save button

2002-04-04 Thread Michael Kelly
On 4/4/02 10:41 AM, Josiah Altschuler <[EMAIL PROTECTED]> wrote: Hi Josiah, > Hi. Does anyone know how to make a save button on a web page so that when a > client user clicks on it, a CGI program will send a text file to that > client? This has nothing to do with Perl. It's an HTML question.

Re: weird characters

2002-04-04 Thread Michael Kelly
On 4/4/02 3:00 AM, Adam Bartley <[EMAIL PROTECTED]> wrote: > Easy. Mac, Windows and Unix all use different endings to their lines. The > Mac uses *both* the PC and the Unix form. Easiest is to download TexEdit, > open your cgi files with it and use the quick convert option to turn it from > Mac t

Re: Cgi.pm

2002-04-02 Thread Michael Kelly
On 4/2/02 7:51 PM, Bob T <[EMAIL PROTECTED]> wrote: Hi Bob, > In order to have perl work as a cgi scripter are any modules besides CGI.pm > actually needed?? You need no modules. All you need is a web server with a perl interpreter For instance, the following uses no modules: #!/usr/bin/perl

Re: Including an HTML file or a text file in a CGI script

2002-04-02 Thread Michael Kelly
On 4/2/02 4:22 PM, Octavian Rasnita <[EMAIL PROTECTED]> wrote: > Hi all, Hi Teddy, > I want to make a Perl script and I want to include an HTML file in a certain > place in it. First, I assume you mean you want the contents of an HTML file to be included in your script's output. > I would als

Re: netscape problem !!!

2002-04-01 Thread Michael Kelly
On 4/1/02 9:13 AM, Aman Raheja <[EMAIL PROTECTED]> wrote: > Hi all > I have created a cgi-perl script for a web-site. I am using cookies and > mysql for database on a Linux box. > When my page is called in IE, it works great, but Netscape throws out the > whole HTML code. > Now, if I copy this co

Re: my first regex i think

2002-03-22 Thread Michael Kelly
On 3/22/02 1:26 PM, Matthew Harrison <[EMAIL PROTECTED]> wrote: > if i have a file delimited by commas and i want to make a script that will > search to see if a word, passed in a query string, is in the file, and > redirect to one url if i does and one if it doesn't (both urls are also > passed

Re: Re :Camel Book

2002-03-21 Thread Michael Kelly
On 3/20/02 8:26 PM, Sunish Kapoor <[EMAIL PROTECTED]> wrote: > Hi Teddy, > > Want an HTML version of Programming Perl Second version (Free) . > > Sunish > > ;-) No, I do not. And neither does anyone else. Rethink your outlook on piracy. -- Michael -- To unsubscribe, e-mail: [EMAIL PROTE

Re: Camel Book

2002-03-20 Thread Michael Kelly
On 3/20/02 4:29 AM, Octavian Rasnita <[EMAIL PROTECTED]> wrote: > Hi all, > > I heard about that famous Camel Book for Perl but I don't know its real > name. > Please tell me if you know. > Thank you. > Teddy, "Programming Perl", by Larry Wall, Tom Christiansen, and Jon Orwant. http://www.orei

Re: CGI with a form

2002-03-09 Thread Michael Kelly
On 3/9/02 10:25 PM, Troy May <[EMAIL PROTECTED]> wrote: > The second one: > > How to use the query string to determine what part of a CGI script runs? > > I need to have the form button execute a certain part of the script. Thanks for the specification. The query string is stored in the varia

Re: CGI with a form

2002-03-09 Thread Michael Kelly
Oops, I didn't realize this was cross-posted. (Please don't cross-post, people. You are NOT the only person who thought up the idea of being on more than one related list at once.) My first reply went to the beginner's list -- ignore it. The CGI beginners list seems more appropriate. On 3/9/02 8

Re: Regex question

2002-03-09 Thread Michael Kelly
On 3/9/02 1:46 PM, Scot Robnett <[EMAIL PROTECTED]> wrote: Hi Scot, > I'm trying to do a simple verification of an e-mail address format. I want > to require: > > - 1 or more alphanumeric characters > - followed by "@" > - followed by 1 or more alphanumerics > - followed by a dot > - followed b

Re: apple and oranges

2002-03-06 Thread Michael Kelly
On 3/6/02 2:25 PM, Fred Sahakian <[EMAIL PROTECTED]> wrote: > Hi Crew: Hi Fred, > Here's one-- > > Im taking in data through a Perl Script with the following conversion: > > $value = ~s/Apple/Orange/g; > > > This is fine for new data, but each time the program is run it's taking all > the d

Re: How can i put the html code in my cgi?!?

2002-03-05 Thread Michael Kelly
On 3/5/02 12:52 AM, GsuLinuX <[EMAIL PROTECTED]> wrote: > thanx, but i got a huge html code and converting like that will cost be too > much, isn't there a method pratique like > print <<"html code"; > > ?!??!?!!?? > > thanx > > Derya It's all a matter of what you want to do. If you want the

Re: my first C++ CGI won't work

2002-02-14 Thread Michael Kelly
On 2/15/02 12:00 PM, Stephen Warburton <[EMAIL PROTECTED]> wrote: > Hi, Hey Stephen, > I am stuck trying to get a simple C++ CGI working. I am using the installed > configuration file which allows Apache to succesfully serve up a web page > under document root: > DocumentRoot "C:/Apache/Apache

Re: splitting a vector... or something like that!?

2002-02-06 Thread Michael Kelly
$word = `grep -inlsh $testvalue *`; @lines = split(/\n/,$word); print "The string $testvalue was found in these files : \n"; foreach $line (@lines){ print "$line\n"; } print "\n"; I'll also note that either way, you end up putting an ri

Re: Searching for a free CGI-BIN

2002-02-03 Thread Michael Kelly
DED_FOR}. (I don't know if it'll work, but it worked for me when I used f2s). If you want real flexibility, though, you'll have to either pay (PHPWebhosting.com works for me) or host your own site. Hope that helps a bit, -- Michael Kelly [EMAIL PROTECTED] http://www.jedimike.

Re: Updatable Guest Book ?

2002-01-04 Thread Michael Kelly
if it will fit your needs, but you may want to check out this URL: http://www.jedimike.net/MKGuestBook/ -Michael Kelly Email: [EMAIL PROTECTED] The Web: http://www.jedimike.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Hi???

2001-11-17 Thread Michael Kelly
Yeah, there's a few of us here. :) -Michael Kelly Email: [EMAIL PROTECTED] The Web: http://www.jedimike.net > From: "Andre` Niel Cameron" <[EMAIL PROTECTED]> > Reply-To: "Andre` Niel Cameron" <[EMAIL PROTECTED]> > Date: Sat, 17 Nov 2001 17:32:02

Re: why is perl better then PHP

2001-11-16 Thread Michael Kelly
> Perl is an extremely powerful, multi-talented tool that is often described > as a Swiss Army Knife Correction: Swiss Army Chainsaw :) -Michael Kelly Email: [EMAIL PROTECTED] The Web: http://www.jedimike.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[OT] Re: why is perl better then PHP

2001-11-16 Thread Michael Kelly
for all platforms). In closing, however, I would like to say that the above was simply my personal opinion on a specific language. It is not meant to disrespect anyone who uses ASP, and I certainly respect everyone's choice of language, even if I do not personally agree with it. -Michael

Re: Browser Redirection

2001-10-10 Thread Michael Kelly
> From: [EMAIL PROTECTED] (Randal L. Schwartz) > Organization: Stonehenge Consulting Services; Portland, Oregon, USA > Date: 10 Oct 2001 15:32:01 -0700 > To: [EMAIL PROTECTED], [EMAIL PROTECTED] (Michael Kelly) > Subject: Re: Browser Redirection > >>>>>>

Re: Browser Redirection

2001-10-10 Thread Michael Kelly
> From: [EMAIL PROTECTED] (Randal L. Schwartz) > Organization: Stonehenge Consulting Services; Portland, Oregon, USA > Date: 10 Oct 2001 09:06:34 -0700 > To: [EMAIL PROTECTED] > Subject: Re: Browser Redirection > >> "Carl" == Carl Franks <[EMAIL PROTECTED]> writes: > > Carl> Hi > Carl> I'm h

Re: Nevermind

2001-09-30 Thread Michael Kelly
t think anyone can hold a candle to my "join() doesn't work with a regex" post, though :) http:[EMAIL PROTECTED]/msg10592.html -Michael Kelly Email: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Reg Exp problem

2001-08-08 Thread Michael Kelly
# keys in $query $value = $query->param('foo'); # assign $value to the value of "foo" Hope that helps. -Michael Kelly Email: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: href in CGI

2001-08-06 Thread Michael Kelly
On 8/6/01 10:04 AM, Michael Kelly wrote: > [Erg, I keep replying to just the person who sent the message. This one's to > the list.] > > On 8/6/01 1:04 AM, . wrote: > >> What is the syntax of the href method in CGI.pm? I can't find it in the man >&

Re: href in CGI

2001-08-06 Thread Michael Kelly
[Erg, I keep replying to just the person who sent the message. This one's to the list.] On 8/6/01 1:04 AM, . wrote: > What is the syntax of the href method in CGI.pm? I can't find it in the man > pages. Is it something like this: > > href([URL],[Additional Attributes],[Link Text | Link Image]

Re: Random Number Generation

2001-08-05 Thread Michael Kelly
were originally posted to both groups.) Make life easier for those of us who don't want to spend an hour getting our filters to work perfectly... -Michael Kelly Email: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Form Handelling.

2001-08-03 Thread Michael Kelly
gt; Rajeev Rumale I believe CGI.pm lists values returned from lists as arrays. So as far as I know, the following should work: $input = new CGI; @anArray = $input->param('listField'); #if your field is called listField That should give you a list of values from the very start. Hope that helps, -Michael Kelly Email: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]