RE: sample customer dbms in perl/mysql

2002-01-18 Thread Chris Spurgeon
Chris Spurgeon Senior Design Technologist [EMAIL PROTECTED] ELECTRONIC INK One South Broad Street 19th Floor Philadelphia, PA 19107 www.electronicink.com t 215.922.3800 x(233) f 215.922.3880 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday

RE: can perl connect to database?

2002-01-14 Thread Chris Spurgeon
Absolutely! You want to use the DBI module. DBI provides a database independent way to communicate between Perl and a wide variety of databases. A great way to start is with the O'Reilly book, "Programming The Perl DBI". ____ Chris Spurgeon Senior Design Tech

RE: C vs. Perl

2002-01-02 Thread Chris Spurgeon
> 2) I am not exactly sure what you mean by "profiled your Perl", however I do > do benchmarks on code. I am in the process of redesigning our website, and > thus taking this opportunity to improve upon old scripts that will need > changing anyways. Current improvements to our main script have

RE: Automatic execute of script

2001-12-28 Thread Chris Spurgeon
You can sometimes get at it from the client side...if you can set up something on a machine that you control to periodically request a webpage from the server, and if that web page runs the perl script you want to fire, you can accomplish the same thing that way. Chris

RE: Interfacing with Microsoft Access Database in win2k wiht ActiveSt ate Perl 5.6.01. General Help needed.

2001-12-20 Thread Chris Spurgeon
Funny, I asked that exact question about a month or two ago. What I was told, and what worked just fine for me, was to use the general DBI module along with the more specific DBD::OBDC module. That combo let's you connect to OBDC compliant DBs, such as MS Access.

RE: Array Length.

2001-12-17 Thread Chris Spurgeon
A zillion ways. One is $length = scalar(@thearray); Chris Spurgeon Senior Design Technologist [EMAIL PROTECTED] ELECTRONIC INK One South Broad Street 19th Floor Philadelphia, PA 19107 www.electronicink.com t 215.922.3800 x(233) f 215.922.3880 -Original Message

RE: How can I get ahold of the DBI file needed for a ActiveState ppm install?

2001-12-15 Thread Chris Spurgeon
Heh, copying the file structure from another Windows setup is exactly what I ended up doing. But what changes did you make to the autoexec.bat? Chris Spurgeon Senior Design Technologist [EMAIL PROTECTED] ELECTRONIC INK One South Broad Street 19th Floor Philadelphia, PA 19107

How can I get ahold of the DBI file needed for a ActiveState ppm install?

2001-12-14 Thread Chris Spurgeon
estate.com and can't find them, and the CPAN repositories seem to just have the tar.gz version of the modules. Does anyone have any ideas? ____ Chris Spurgeon Senior Design Technologist [EMAIL PROTECTED] This e-mail is intended solely for the above-mentioned recipient and

RE: thanks for the info on removing control m's

2001-12-06 Thread Chris Spurgeon
perldoc -f substr Just use a negative number for the offset, and it grabs characters from the right. Chris Spurgeon Senior Design Technologist [EMAIL PROTECTED] ELECTRONIC INK One South Broad Street 19th Floor Philadelphia, PA 19107 www.electronicink.com t 215.922.3800 x

RE: perl script to remove control M's

2001-12-05 Thread Chris Spurgeon
Sho nuff. Hell, for that matter, you can just blow them all away from within emacs. Chris Spurgeon Senior Design Technologist [EMAIL PROTECTED] ELECTRONIC INK One South Broad Street 19th Floor Philadelphia, PA 19107 www.electronicink.com t 215.922.3800 x(233) f

RE: perl script to remove control M's

2001-12-05 Thread Chris Spurgeon
perl -i.bak -npe 's/\r\n/\n/g' where is the filename you want to clean. A backup copy of your original file will be created in the same directory with a ".bak" extension. ____ Chris Spurgeon Senior Design Technologist [EMAIL PROTECTED] ELECTRONIC INK On

RE: Help with Perl

2001-12-05 Thread Chris Spurgeon
Probably many ways to do this but one would be if (($letter ge "A") && ($letter le "L")) { do something } ____ Chris Spurgeon Senior Design Technologist [EMAIL PROTECTED] ELECTRONIC INK One South Broad Street 19th Floor Philadelphia, PA 19

Firing a subroutine from within a here-document

2001-11-24 Thread Chris Spurgeon
I have this code snippet... $x = 1; $y = 2; sub foobar { print "You fired the subroutine!\n"; } print <

RE: Extracting messages from Outlook

2001-11-21 Thread Chris Spurgeon
n this type of thing. ____ Chris Spurgeon Senior Design Technologist [EMAIL PROTECTED] ELECTRONIC INK One South Broad Street 19th Floor Philadelphia, PA 19107 www.electronicink.com t 215.922.3800 x(233) f 215.922.3880 -Original Message- From: Clive Lansink [mailto:[EM

RE: How to delete hash element

2001-11-20 Thread Chris Spurgeon
Yeah, that gets rid of the key as well. Chris Spurgeon Senior Design Technologist [EMAIL PROTECTED] ELECTRONIC INK One South Broad Street 19th Floor Philadelphia, PA 19107 www.electronicink.com t 215.922.3800 x(233) f 215.922.3880 -Original Message- From: Mike

RE: How to delete hash element

2001-11-20 Thread Chris Spurgeon
Say you've got a hash called %myhash and it's got a key called "foo". delete $myhash{foo}; will get rid of the "foo" key. ____ Chris Spurgeon Senior Design Technologist [EMAIL PROTECTED] ELECTRONIC INK One South Broad Street 19t

RE: Linux Commands in perl

2001-11-01 Thread Chris Spurgeon
Yow! Just a quick note to the differently clued, you really don't want to run that example. Maybe do something like system("ls -lt /"); instead. ____ Chris Spurgeon Senior Design Technologist [EMAIL PROTECTED] ELECTRONIC INK One South Broad St