Re: Can I design a website using Perl

2009-12-07 Thread Scott Pham
Parag Kalra wrote: Hello All, I have only interacted with PHP/MySQL to design a website. I wanted to know if it is possible to use Perl instead of PHP (and I am pretty sure it should be possible :) ). But my main concern is what are the main Pros & Cons of using Perl instead of PHP. I have ver

Re: Separating DB operations out of program code

2009-11-26 Thread Scott Pham
Have you looked at DBIx::Class? Steve Bertrand wrote: Hi everyone, I'm looking to separate all of my MySQL logic (queries etc) out of my projects methods and into it's own class. Primarily, this is to provide me with the ability to change how the back-end is interacted with, without having to

Re: Replacing Characters only in ()

2005-08-16 Thread Scott Pham
Thanks John, this solution is much better :) On 8/16/05, John W. Krahn <[EMAIL PROTECTED]> wrote: > Scott Pham wrote: > > I currently have this issue I can't seem to get to work correctly or > > more like at all. > > > > I'm looking at a string say: >

Re: Replacing Characters only in ()

2005-08-16 Thread Scott Pham
Nevermind I think I figured it out :) On 8/16/05, Scott Pham <[EMAIL PROTECTED]> wrote: > I currently have this issue I can't seem to get to work correctly or > more like at all. > > > I'm looking at a string say: > > (one,two,three) word,word2,word3,word

Replacing Characters only in ()

2005-08-16 Thread Scott Pham
I currently have this issue I can't seem to get to work correctly or more like at all. I'm looking at a string say: (one,two,three) word,word2,word3,word4 When I split this string using the comma, it splits the ones in parens as well. (one,two,three) word - this line should only be one string

Re: blacklist monitoring with Net::DNS::Resolver

2005-02-14 Thread Scott Pham
have you tried reversing the array and joining it with a "."? On Mon, 14 Feb 2005 18:38:36 +0100, Mariano Cunietti <[EMAIL PROTECTED]> wrote: > Hi, > I'm writing a simple script to perform some periodical checks on dns > blacklist, so I can be quickly informed when one of my mail servers gets > b

Re: Perl versus Expect(tcl) : Specific Example

2005-02-13 Thread Scott Pham
Perl Expect on Windows CON: Expect perl module can't be used on a Windows platform. Looks like your best bet is to use activestate TCL if it's on windows. On Sat, 12 Feb 2005 17:27:54 -0800, perl perl <[EMAIL PROTECTED]> wrote: > Hi, I'd like to narrow the previous Expect(tcl) question so that a

Re: Moving Data from one table to another table

2004-12-29 Thread Scott Pham
Depending on what database platform you are using, you can easily do "SELECT * into new_table from table; On Tue, 28 Dec 2004 15:50:41 -0500 (EST), Chris Devers <[EMAIL PROTECTED]> wrote: > On Tue, 28 Dec 2004, Chris Lyon wrote: > > > So, I am trying to move data from one sql table to another t

RE: Called script does not return a true value?

2004-11-16 Thread Scott Pham
Do you have a '1;' at the end of your 'second_script.pl'? -Original Message- From: John Bruin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 5:03 PM To: [EMAIL PROTECTED] Subject: Called script does not return a true value? I have a perl script that calls another perl script.

RE: Need help with regex

2004-11-04 Thread Scott Pham
Why don't you just split the line and use the whitespace as separator? $line =~ s/\s+/ /; my ($record,$date,$cust,$temp1,$temp2,$temp3,$temp4,$temp5,$shipping,$paid) = split (/ /,$line); -Original Message- From: Kevin Old [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 10:3

array of references

2004-10-25 Thread Scott Pham
I've been thinking about this and not sure how to approach this problem. Say I want to create an array of 4 array references, thats easy since I know that there will be 4 array references, how would I do this dynamically? Say if one I only needed 2 references and another I need 10 array references,