How do I do this

2002-06-09 Thread Andrew Rosolino
sub settings_smi_edit { $storeline = $q->param('id'); open(FILE, "info/smileset.txt"); @file = ; close(FILE); foreach $i (@file) { ($number, $image, $name, $text, $used) = split(/\|/, $i); if ($number eq $storeline) { @numb = ($number, $image, $name, $text, $used); } } } Ok that I been tryin

Re: Mastering Regular Expressions?

2002-06-09 Thread David T-G
Teddy -- ...and then Octavian Rasnita said... % % Hi all, Hello! % % Do you know if there is an electronic version of "Mastering Regular % Expressions" book that I can find? Other than the CD version, also for sale from ORA, probably not; it's a still-in-print book that I'm sure isn't licen

Re: Running a Perl program in background

2002-06-09 Thread David T-G
Teddy -- ...and then Octavian Rasnita said... % % Hi all, Hello again! % % I am a beginner in Perl, and in the first lessons of some manuals I haven't % seen anything about how to run a Perl script in background. % Is it something very complicated? Well, it depends on what you want to do.

Re: At least a number of characters - regular expressions

2002-06-09 Thread David T-G
Teddy -- ...and then Octavian Rasnita said... % % Hi all, Hello! % % I want to check if in a string there are more than 3 capital letters. % I've tried using: % % if ($string=~ /[A-Z]{3,}/) { ... % % For example, I want to match this string: "AxxxBxxxCxxx". That's not so bad: [zero] [9

Re: Printing a single quoted string

2002-06-09 Thread David T-G
Teddy -- ...and then Octavian Rasnita said... % % Hi all, Hello! % % I've printed a block of text using: % % print email % me % eof % % The problem is that using < cat /tmp/goo #!/usr/bin/env perl $email_address = "addy"; pr

Mastering Regular Expressions?

2002-06-09 Thread Octavian Rasnita
Hi all, Do you know if there is an electronic version of "Mastering Regular Expressions" book that I can find? Thank you very much! Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Running a Perl program in background

2002-06-09 Thread Octavian Rasnita
Hi all, I am a beginner in Perl, and in the first lessons of some manuals I haven't seen anything about how to run a Perl script in background. Is it something very complicated? If it is, then I will wait a little to learn Perl better. If it is not too complicated, can you give me some hints abo

At least a number of characters - regular expressions

2002-06-09 Thread Octavian Rasnita
Hi all, I want to check if in a string there are more than 3 capital letters. I've tried using: if ($string=~ /[A-Z]{3,}/) { } This match at least 3 capitals only if they are one after another. I want to check if the string contains at least 3 capitals, doesn't matter how are they position

Printing a single quoted string

2002-06-09 Thread Octavian Rasnita
Hi all, I've printed a block of text using: print email me eof The problem is that using <

Chart:Plot Apache

2002-06-09 Thread Konrad Foerstner
Hi, I want to use Chart:P:lot but don't know if I have to configure Apache for that. What do I have to do? At the moment I get this when I'm using a test-script I found in the net: Can't locate Chart/Plot.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/li

Re: crash course recommendations

2002-06-09 Thread Curt Eiworth
Sol! This one is the best: http://www.easystreet.com/~ovid/cgi_course/ FYI: IMHO, Ovid is the *guruest* of all the Perl gurus, though not all that poetic best of luck /curt Den 2002-06-09 12:42:59 skrev "Sol" <[EMAIL PROTECTED]>: > >Hi there, > >I've inherited an intranet server run interact

crash course recommendations

2002-06-09 Thread Sol
Hi there, I've inherited an intranet server run interactive pages with perl-cgi scripts, one of which I need to edit in a hurry, which is a bit of a problem considering I know about zero Perl. (Luckily I know some rudimentary SQL & HTML) I've been scouring the WWW for tutorials on perl-cgi tutor

Re: mysql query statement

2002-06-09 Thread Janek Schleicher
Hytham Shehab wrote at Fri, 08 Jun 2001 15:10:19 +0200: > hi all of u, > i got a simple question, why (1) is valid, however, (2) is not ?!! > (1) sorting order is explicity typed in the query statement: > $sth = $dbh->prepare("select student_name from students order by first_name > asc"); >