RE: Regular expression help!!

2001-10-28 Thread Veeraraju_Mareddi
Hi Warren Just Look at it. $str= 'insert_job: DUKS_rtcf_daily_log_purge job_type: c'; $str =~ s/[^:]*://; With Regards Raju -- From: Woz [SMTP:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 3:34 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED

newbie : how to find the latest file in a directory

2001-10-28 Thread Dolfen, Stefan
Hello, how can I find the latest file in a directory ? thanks, Stefan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: problem with 'use strict'

2001-10-28 Thread Brett W. McCoy
On Mon, 29 Oct 2001, Piers Cawley wrote: > So it seems that Larry is minded to keep the current situation where > strict doesn't get turned on unless you want it. And I don't remember > him saying anything different in any of the later Apocalypses, which > I've been following rather closely. OK,

Changing a Unix password.

2001-10-28 Thread Daniel Falkenberg
Hi all, I have a small CGI script here that is used to change users Unix passwords. Now before we go into security let me just tell you that the script is only accessable via a user name and password. The script is also only accessable on an internal network and the every character in each para

Re: Flat File

2001-10-28 Thread birgit kellner
--On Sonntag, 28. Oktober 2001 16:02 -0800 Joe Echavarria <[EMAIL PROTECTED]> wrote: > Hi there, > >I have a flat file with the follwoing structure : > > city|name|phone|zip. > >The script save each row with "\n" at the end. > > If for example i wish to display all rows of the > citi

Re: Flat File

2001-10-28 Thread Scott Lutz
($city,$name,$phone,$zip) = (s/\|/, $variable_representing_each_entry ) print "City=$city\n"; - Original Message - From: "Joe Echavarria" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, October 28, 2001 4:02 PM Subject: Flat File > Hi there, > >I have a flat file wit

Flat File

2001-10-28 Thread Joe Echavarria
Hi there, I have a flat file with the follwoing structure : city|name|phone|zip. The script save each row with "\n" at the end. If for example i wish to display all rows of the cities in Miami. That is city=Miami. How can i do it ? I have been trying regular expresions, but has n

Re: problem with 'use strict'

2001-10-28 Thread Brett W. McCoy
On Sun, 28 Oct 2001, Piers Cawley wrote: > > strict is very picky... but it's a good thing to use because it > > enforces good, clean programming practices. In Perl6, strict will be > > on by default, so it has been written. > > It has? Where? And by whom? I believe it was in one of the various

RE: modifying strings that contains numbers

2001-10-28 Thread Wagner-David
Here is one way: $i = "buy 10/23/01 50 25.25 50 25.25"; my @MyItems = split( /\s+/, $i ); $MyItems[2] *= 2; $MyItems[3] *= 2; my $MyPrnt = join(' ', @MyItems); printf $MyPrnt . "\n"; prints: buy 10/23/01 100 50.5 50 25.25 Wags ;) -Original Message- From: Roy Peters [mailto:[EM

modifying strings that contains numbers

2001-10-28 Thread Roy Peters
hi I have an variable of the following format $i = "buy 10/23/01 50 25.25 50 25.25" Now, I would like to multiply the 3 and 4th fields by a factor (say 2) so I get the following $i = "buy 10/23/01 100 50.50 50 25.25" How do I do this? Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: connecting to MS Access

2001-10-28 Thread Thomas A . Lowery
There are a number of ways: DBI using DBD::ADO or DBD::ODBC, Win32::ODBC, or Win32::OLE. My personal favorite is DBI using DBD::ADO. Tom On Sun, Oct 28, 2001 at 12:37:46PM -0800, Scott Lutz wrote: > I am wondering what the best way to connect to a MS Access database table to extract >email ad

connecting to MS Access

2001-10-28 Thread Scott Lutz
I am wondering what the best way to connect to a MS Access database table to extract email addresses is? DBI or is the some variety of Perl::ODBC? Thanks! --- scott lutz ---

Using the require command with perl

2001-10-28 Thread Troy May
Hi, I'm trying to use the require command with perl but when i want to put a variable within the require statement it always errors out. The code looks something like this. require "/absolute/path/to/files/$FORM{'id'}/options.txt"; Is this not possible? thanx for the help. -- To unsubscribe,

Re: Need help with CGI module

2001-10-28 Thread _brian_d_foy
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Dave Turner) wrote: > I have scanned the docs and can't seem to find the answer to this anywhere. > > I want to change the color of the text and the font size on a web page > using CGI:pm. > but I'd like to have the flexibility to do you ca

module and logicistics advice, please

2001-10-28 Thread birgit kellner
I'm rethinking the basic approach to a database managing script I have and would need some advice about how to rewrite it into some modules, cgi scripts that use them and smaller files which are "require"-d and whose variables I need available in the modules/scripts. The setup I have now is ba

Re: use strict and filehandles

2001-10-28 Thread Jan
Ah, ok, thats it, but by now I rewrote it with my $compu = new FileHandle, but I'm in rouble with getc or sysread operations on the handle. I'll put a commented working version on my hp: Jan-Kirchhoff.de asap. thanks for the help to everybody, Jan Am Sonntag, 28. Oktober 2001 04:12 schrieb [EMA

Re: Need help with CGI module

2001-10-28 Thread Mel Matsuoka
At 01:12 AM 10/28/01 -0700, Dave Turner wrote: >I have scanned the docs and can't seem to find the answer to this anywhere. > >I want to change the color of the text and the font size on a web page >using CGI:pm. > >my code looks like: > >$q->h2( "Something witty here"); > >but I'd like to have t

Re: Need help with CGI module

2001-10-28 Thread nafiseh saberi
in http://stein.cshl.org/WWW/software/CGI/#menu exist some example.. bye. __ Best regards . Nafiseh Saberi Iran . notes . Pray for Afghans people. Bad news travels fast. www.ir

Re: Need help with CGI module

2001-10-28 Thread nafiseh saberi
I am like you.. see in : http://stein.cshl.org/WWW/software/CGI/#menu bye. __ Best regards . Nafiseh Saberi Iran . notes . Pray for Afghans people. Bad news travels fast. www.i

Need help with CGI module

2001-10-28 Thread Dave Turner
I have scanned the docs and can't seem to find the answer to this anywhere. I want to change the color of the text and the font size on a web page using CGI:pm. my code looks like: $q->h2( "Something witty here"); but I'd like to have the flexibility to do Can anyone point me to a reference