Re: Delimiter for string..

2004-02-04 Thread Chuck Fox
Ajitpal, [EMAIL PROTECTED] wrote: Friends, I am running a perl script as below which is working perfectly and want to replace the hardcoded values with variables. (the script accepts space as the delimiter) @respon = $placesock->print("./test.pl \"7741266\" \"DEM EXPO\" \"255.255.255.255\" \n");

Re: Newbie

2004-01-22 Thread Chuck Fox
[EMAIL PROTECTED] wrote: Well, I'm a newbie. Just got started in Perl and was stunned by its power. The thing is i'm running the scripts in WinXP. Can you tell how to use CGI scripts in XP, because if ai try to set a CGI script as ACTION in a forme it just gets read and doesn't execute. I've hear

Re: Perl C module compile fails

2004-01-20 Thread Chuck Fox
Steve, [EMAIL PROTECTED] wrote: Hi ppl :-) I now use CPAN to install modules. I have to install the DBI module but when installing I get this error when it's about to compile a C file : cc -c-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -I/us

Re: case and functions

2004-01-06 Thread Chuck Fox
[EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] I read in Learning Perl that there are no such constructs like a case statement. Is there something similar or did I misread this? Ask the FAQ, run perldoc -q "case statement" Also what about functions and function calls, do the

Re: Term:ANSIColor and negative numbers

2003-12-19 Thread Chuck Fox
[EMAIL PROTECTED] wrote: Well, in Windows 98 and below, you could add the line: DEVICE=ANSI.SYS to your C:\CONFIG.SYS and it would allow the command prompt to interpret ANSI escape sequences. Unfortunately, I do not know the equivelant for Windows NT/2K/XP. Ahh, A Golden Oldie for sure! You

Re: Recommended simple Perl IDE/Editors ?

2003-12-15 Thread Chuck Fox
[EMAIL PROTECTED] wrote: Just wondering what IDE/editor folks use for their Perl work ? I am on OS X but I use a Java-based editor called jedit, which is available on W32 as well, I guess. http://www.jedit.org/ It supports syntax highlightning, plus it's Freeware and there are lots of nice add-

Re: [OT] Education Level

2003-12-08 Thread Chuck Fox
[EMAIL PROTECTED] wrote: Hello, Hi Charles, A recent job posting has left me curious. I would never take a full time job as a programmer or as anything else for that matter. I just don't make a good employee any more. Been there. Done that. The job posting demanded a college degree. I had

Re: Beta Testing a Robot

2003-12-04 Thread Chuck Fox
Casey, I would like to chime in on the side of sending the search results directly to the poster. In most cases, the poster is at the mercy of the search engine they choose. Whereas, you have the advantage of knowing where to search. Please do not abandon this work. A digest -- to which, o

Re: Rephrasing the Question

2003-11-18 Thread Chuck Fox
[EMAIL PROTECTED] wrote: Hi All, Hey Jason, I need to write a script that finds the uniq() function in code for a data manipulation language, and replaces it with hyd_uniq(). Here are some examples: amend: u= uniq( timetags.bin_start, s ) to: u= hyd_uniq( timetags.bin_start, s ) amend:

Re: Pivoting Data for use with gnuplot (solved)

2003-11-15 Thread Chuck Fox
Chuck Fox wrote: Fellow perl coders, I am having trouble wrapping my head around how to accomplish the following: Given a dbi result set that consists of datetime, servername, databasename, procedurename and average elapsed time. Convert this into an data structure suitable for export to a

Re: writing excel files

2003-11-14 Thread Chuck Fox
[EMAIL PROTECTED] wrote: I need to be able to create Microsoft Excel files from a perl script. I want to know which module for doing this that people recommend. I don't need anything too fancy. There will be very little formatting. What formatting I need to do will be column widths and maybe bo

Re: Help with UNIX commands

2003-11-14 Thread Chuck Fox
[EMAIL PROTECTED] wrote: I am researching some unix commands and I would like to know if someone knows where I can find them online. I just want to know what are they used for and if there are some available examples online.The commands are: snapshot and sdtprocess. Sorry if this is not the ri

Pivoting Data for use with gnuplot

2003-11-14 Thread Chuck Fox
I have been listening in. Chuck Fox -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Fw: question

2003-11-13 Thread Chuck Fox
[EMAIL PROTECTED] wrote: On Wed, 12 Nov 2003 19:44:02 +, John Dillon wrote: whereas php started as a HTML manipulation language and is good for database interaction, for which arrays are important. I'd love to see examples on what Perl can't do compared to PHP. One of my biggest compl

Re: Representing a Database as XML

2003-11-11 Thread Chuck Fox
[EMAIL PROTECTED] wrote: What are you _really_ asking for here? Do you want to use XML to store your data, or do you want XML to store information about how to interact with any database? The latter doesn't make sense, though; That would be to create a language which multiple DB platforms comply

Re: Died on open command

2003-11-10 Thread Chuck Fox
[EMAIL PROTECTED] wrote: It has nothing to do with what ActiveState did or didn't do. The DOS/Windows command interpreter (command.com/cmd.exe) uses '\' as the path separator however the operating system itself is able to use '/' as the path separator. Sorry, I just tried it on my machine he

Re: RE : SQL Syntax quickie

2003-10-27 Thread Chuck Fox
Yet another solution SET ROWCOUNT 1 SELECT id FROM table ORDER BY id DESC Only works if there is an index on id and the RDBMS support backward scans Chuck [EMAIL PROTECTED] wrote: Another solution : For your query, try "SELECT MAX(id) FROM table" That works with mysql. -Message d'origine

Re: explicit vs implicit syntax

2003-10-02 Thread Chuck Fox
In other words - save it for Perl Golf ;-) HTH, Thomas PS: Perl Golf - writing code with as little (key-)strokes as possible. Thomas, Beyond all the enlightenment that this list brings, I am stunned (ROTFLMAO) to realize that coding could be a sport. Cya at the 19th hole. Chuck -- To u

Re: avoid repitive code while sorting hash arrays

2003-09-19 Thread Chuck Fox
Rob and all the other perl wonder workers who contribute to this list, Awesome, While I have been reading and writing perl for a few years now, I am always amazed at the code reduction that can occur when you properly apply the power of perl. This is the most instructive forum that I have ever

Re: How to secure database password? (was Re: Perl/DBI newbie: password storage / security question)

2003-09-17 Thread Chuck Fox
ROTECTED] wrote: Hello, Many thanks to R. Joseph Newton, Motherofperls, essential quint and Chuck Fox for answering my questions, however it is still not what I was asking about. My previous posts were long and maybe unclear so I'll try to get straight to the point this time, adding more de

Re:

2003-09-16 Thread Chuck Fox
No matter how foolproof you make, the fools keep getting smarter. Chuck [EMAIL PROTECTED] wrote: Dan Anderson wrote: > > He is right. Although I am new to Perl, I have had some very dumb users > break my PHP scripts by inputting things like "eighteen dollars and 0 > cents" in a form with a

Re: Perl/DBI newbie: password storage / security question

2003-09-15 Thread Chuck Fox
we do not have web servers calling directly to dbs, so the issue of clear text password in the subclassed DBI module is not so much of a concern for us. Like most places there are 9 layers of security to get through before you can try to run perl code on a production host. HTH, Chuck Fox

Re: new to perl

2003-08-28 Thread Chuck Fox
Shirley, I do almost the exact same thing in my database dump script. Here is the function that I use to remove older dump files. HTH, Chuck Fox ### Prune Dumps Subroutine ### ### Description: ### This subroutine will

Re: Perl & XML

2003-08-28 Thread Chuck Fox
Joe, Try XML::Writer Chuck [EMAIL PROTECTED] wrote: I'm beginning my studies of XML and am looking for a Perl module(s) that allows me to be able to dynamically generate the XML along with any data and display it on the fly, as I now do with HTML. What I've seen so far seems to require writing

Re: Graphing/Plotting over time

2003-08-28 Thread Chuck Fox
What about using perl to massage the data into a file (or hash) and then using gnuplot ( or Graph::Plot ) Chuck [EMAIL PROTECTED] wrote: --On Wednesday, August 27, 2003 1:29 PM -0500 "Akens, Anthony" <[EMAIL PROTECTED]> wrote: Just wanted to look into a "for fun" project, after a recent pro

Re: FILEHANDLE to print to nothing

2003-08-25 Thread Chuck Fox
There is always /dev/null if you really want it to go to the big bit bucket in the sky. Chuck [EMAIL PROTECTED] wrote: Sure, just use this without an open or close statement... print VOID 'test'; I'm not exactly sure how Perl handles this, but since there is no filehandle called VOID is just

Re: Perl Codes Written in Windows Env

2003-08-25 Thread Chuck Fox
any issues with running Perl scripts, I have done this many times. BTW, there is a nifty little program called dos2unix (not sure if this is standard for all (*nix)), that removes extraneous carriage returns from files. Chuck Fox [EMAIL PROTECTED] wrote: I have a perl script that I developped

Re: Perl & XS

2003-08-25 Thread Chuck Fox
stat = 139 mean ? Any suggestions would be appreciated. BTW, the module cores after the tests are finished. Chuck Fox Principal Database Administrator America Online, INC. Additional Info: Linux AS 2.1 2.4.9-e.12smp #1 SMP Sybase 12.5 Perl 5.8.0 -- To unsubscribe, e-mail: [EMAIL

Re: Cron jobs and perl

2003-08-21 Thread Chuck Fox
Venkat, FWIW, I would wrap the whole job in a shell script and have cron execute that. Chuck [EMAIL PROTECTED] wrote: Anytime you have problems with a cron, the easiest place to look first is in the cronlog. If you have root access, look at the file /var/cron/log (this is Solaris, other *nix

Perl & XS

2003-08-20 Thread Chuck Fox
with correctly loading the module, but I am unsure of where to go from here. WTF does wstat = 139 mean ? Any suggestions would be appreciated. BTW, the module cores after the tests are finished. Chuck Fox Principal Database Administrator America Online, INC. Additional Info: Linux AS 2.1