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

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

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

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,word4 When I split this string using the comma

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: (one,two,three) word,word2,word3,word4 When I

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

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 an

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 table

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

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