XML suggestions

2011-07-12 Thread Doug Bradbury
Does anyone have suggestions for an active and easy to use XML building & parsing module? Doug Bradbury -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: perl interview questions

2011-04-20 Thread Doug
2011/4/21 Jyoti : > Hello All, > > Please give me any link or any tutorial which will be helpful for > preparation of PERL interview. > There are lots. But, doesn't google give you any info you want? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: begin

Re: Premature end of script headers: syncscript.pl

2011-04-15 Thread Doug
try add these options when new the DBI object: PrintError => 0, RaiseError => 0, 2011/4/15 Agnello George : > Hi All > > In my code i am trying to connect to a db if it fails it should return > 0 ,  this a web based script and it throws me internal server error > and the apac

Re: Working with files of different character encodings

2010-04-05 Thread Doug Cacialli
d block of code work? Or otherwise accomplish the task without opening the .txt file twice? === Douglas Cacialli, M.A. - Doctoral candidate Clinical Psychology Training Program University of Nebraska-Lincoln Lincoln, Nebraska 68588-0308 === On Sun, Apr 4, 2010 at 11:10 AM, Dr.Ruud wrote: > Doug Ca

Working with files of different character encodings

2010-04-03 Thread Doug Cacialli
ces of something.\n"; } } } close ($filehndl); Otherwise, can someone suggest a more elegant way of accomplishing this? It doesn't seem like I should have to open the file twice, as I'm doing in the first block. I can't figure out any way around t

Re: Perl appears to be introducing whitespace when reading .txt files

2010-03-31 Thread Doug Cacialli
presented by Thomas and Dr. Rudd are a little beyond me. I'm reading up now, but can someone shed some light? How can this be resolved in Windows with Strawberry Perl? === Douglas Cacialli, M.A. - Doctoral candidate Clinical Psychology Training Program University of Nebraska-Lincoln Lincoln

Re: Perl appears to be introducing whitespace when reading .txt files

2010-03-31 Thread Doug Cacialli
27;ll post the full code later this afternoon. Thanks again for all the help!! === Douglas Cacialli, M.A. - Doctoral candidate Clinical Psychology Training Program University of Nebraska-Lincoln Lincoln, Nebraska 68588-0308 === On Wed, Mar 31, 2010 at 4:08 AM, Dr.Ruud wrote: > Doug Cacialli

Perl appears to be introducing whitespace when reading .txt files

2010-03-30 Thread Doug Cacialli
I'm completely baffled by this and not entirely sure where to start. I have a plain text file, testfile.txt, which contains a single line: Very truly yours, It is written exactly how you see it above, with a newline at the end. I'm trying to write a script that will determine the number of wor

Re: Lingua::Stem 0.83 module installation problem

2010-03-16 Thread Doug Cacialli
On Tue, Mar 16, 2010 at 9:13 PM, Doug Cacialli wrote: > On Tue, Mar 16, 2010 at 4:36 AM, Dermot wrote: >> On 16 March 2010 00:29, Doug Cacialli wrote: >>> Hello list, >> >>> >>> Building Lingua-Stem >>> Can't locate Lingua/Stem.pm in @INC

Re: Lingua::Stem 0.83 module installation problem

2010-03-16 Thread Doug Cacialli
On Tue, Mar 16, 2010 at 4:36 AM, Dermot wrote: > On 16 March 2010 00:29, Doug Cacialli wrote: >> Hello list, > >> >> Building Lingua-Stem >> Can't locate Lingua/Stem.pm in @INC (@INC contains: >> C:/strawberry/perl/lib C:strawberry/perl/site/lib >>

Lingua::Stem 0.83 module installation problem

2010-03-15 Thread Doug Cacialli
my linux distro, but I need to see this work in Windows; it'd be easier convincing my advisor to buy me a BMW than it would convincing him to switch from Windows, and he'll need to run it on his system. Can someone kindly get me back on track? Many thanks! -Doug. === Douglas Caci

I/O Question

2006-06-14 Thread Doug Adams
days and I can assure you that nothing useful has come out. It has to be something simple I haven't tried... Doug Adams

Re: IPTables and RegEx

2006-05-13 Thread Doug Maxwell
match variables. The inner parens will still capture for you. The trailing '?' says to match zero or one of the whole thing. Doug -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: splitting by number

2005-02-18 Thread Doug Essinger-Hileman
see how to do that now. > > Thanks for the replies that provided the inspirition. You're welcome. You could automate the process by using two variables to set the ratio, then calculating everything off that. If you need help in setting that up, give a holler. Doug -- To unsubscri

Re: splitting by number

2005-02-17 Thread Doug Essinger-Hileman
t, etc. When you need to change the ratio, you simply change the details. In your example (ratio 3:2), you would use mod 5, and send remainders 0, 1 & 2 onto the one hard drive, and remainders 3 & 4 onto the other. HTH Doug -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: A Beginner's problem

2005-01-14 Thread Doug Essinger-Hileman
On 13 Jan 2005 at 7:58, JupiterHost.Net wrote: > > open (CONTROL1, " > always always test to see if it opened or not: (and don't use double > quotes when nothgin is beinf interpolated so Perl doesn't have to > check it to see if somethign needs interpolated) > > open CONTROL1, 'http://learn.pe

A second beginner's question

2005-01-14 Thread Doug Essinger-Hileman
t message is telling me that I either need to lexically scope @group, or declare it beforehand or explicitly qualify it. But haven't I already lexically scoped it? (My guess is that I haven't done that properly, since I'm getting the error message; but I cannot figure out what is

A Beginner's problem

2005-01-13 Thread Doug Essinger-Hileman
. The problem comes in assigning. My file has three lines. The first line contains a list of names seperated by spaces; the next two lines contain numbers: Doug Sandy Lois 0 1 In order to isolate the problem, I have created a simplified script: #read from file open (CONTROL1, "; close (CON

Re: Passing options to command in a system call

2004-10-01 Thread Doug Lewis
I haven't used the wget program before, but try adding a comma after your -O. I did that and I got it working. Jan Eden <[EMAIL PROTECTED]> wrote:Hi, I try to call wget using system like this: system("wget -O /dev/null", "http://janeden.org/test/file.txt";); This does not work: Can't exec "w

RE: Becoming Disenheartened - Everyone talks about Python and says Perl is old news.

2004-10-01 Thread Doug Lewis
I won't even reply to the person that said, perl is old news. And that everyone talks about Python. That is just stupid. Most people either talk about C, C++, or Java. Then comes perl. Perl is still way more talked about than Python In my Experience. Perl makes things much simpler. "NYI

Re: Two easy questions.

2004-09-21 Thread Doug Lewis
Your answer actually lies in the system that you are using first. The reason the CGI scripts hold the .cgi extension. Is because that is what your webserver uses to grab your CGI scripts from your CGI directory. As for using perl myscript. That is a windows thing. If I remember correctly

Determining assigned drives

2004-04-23 Thread Cacialli, Doug
Is there some way to determine assigned drives? I'm thinking something like readdir. By the way, thanks to everyone who responded to my last post re: Win32::ODBC (which as it turned out, wasn't a Win32::ODBC problem at all). I truly appreciate the help! Best, Dou

Win32::ODBC - Where's my data?

2004-04-20 Thread Cacialli, Doug
ow++;" and "print "$Row \n";" prints 878 numbered lines, which is exactly how many observations there are in the table. The problem is this: I get no errors, and "print "$ID => $NAMES{$ID} \n";" does nothing for me. ID does exist as a variable in

Win32:ODBC problem

2004-04-19 Thread Cacialli, Doug
he values aren't being read by print. The Catalog() method isn't the only method I'm having this problem with. I'm running WinXP Pro, ActivePerl 5.8. Any help would be appreciated. Thanks! Doug Cacialli --- Doug Cacialli - Data Manag

Can anyone help

2004-04-01 Thread Doug Guilding
the top level of my webspace. please someone help Yours Lost and confused Doug Guilding

Cut, paste in Tk800.024

2003-06-24 Thread Doug Lentz
I'm doing a "simple" form using Tk. Things are going well, but I feel a little lazy, so for once I will ask about this. Perl/Tk script is running on linux box "host". Users are on windows boxes "local", running the application via an X server (Hummingbird Exceed) and the "export DISPLAY" command.

Re: Array problem, I think

2002-11-11 Thread Cacialli, Doug
One additional thing: The data exists in an array, where each line of raw data is a scalar string within the array. -Original Message- From: Cacialli, Doug Sent: Monday, November 11, 2002 6:18 PM To: '[EMAIL PROTECTED]' Subject: Array problem, I think Y'all, I'm n

Array problem, I think

2002-11-11 Thread Cacialli, Doug
ls{"F2")[1] = "I8"; $individuals{"F2")[2] = "I11"; $individuals{"F2")[3] = "I12"; I'm familiar with substr, split, m//, s///, etc.; I'm just not sure how to programmatically create the data structure. Any help or suggestions to po

how to use 'open'

2002-10-01 Thread Cacialli, Doug
Lo, I apologize if this request is less than coherent. I'm running Win XP Pro using Perl 5.6.1. I'd like to do this: open (ACCESSDB, "| C:\\Documents\ and\ Settings\\Doug\ Cacialli\\Desktop\\TEST DATABASE.mdb") or die "Something is amiss: $! \n"; Whi

Win32::SetupSup module problems?

2002-09-30 Thread Cacialli, Doug
remely new to this.  Any input would be great.  Thanks.   Doug out.   --- Douglas Cacialli - Data Manager / Data Analyst Sleep and Depression Research Laboratory University of Rochester Medical Center 300 Crittenden Blvd. - Box PSYCH Rochester,

opening MS ACCESS via the system function

2002-09-30 Thread Cacialli, Doug
C module that I can use to get at the data, but I'm pretty sure that it won't open the database. ANY suggestions or ideas would be appreciated. This is my first program in perl. Thanks. Doug out. --- Douglas Cacialli - Data Manager

Re: how to be safe and secure

2002-08-30 Thread doug
e an authentication token that they would pass on through the script to the SQL server, removing any reliance on trust between the script and the SQL server. Kerberos supports schemes like this, but I'll bet you that your components do not. Doug On Thu, 29 Aug 2002, brian gilbert wrote:

Re: use Variable as a hashname?

2002-08-26 Thread doug
Here's one way: my %router = (); $router{"size"} = "big"; my $varname = "router"; eval < Hello, > can I / how can I use a variable as a hash name? > > $$myVar{key}? > > Thanxs! > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >

On possible IP addresses

2002-08-20 Thread doug
ld probably not recomending considering these invalid. Also, keep in mind that these are also valid IP addresses: 0 1089214484 (try it!) Doug On Tue, 20 Aug 2002, Angerstein wrote: > yes, correctly > > > -Ursprüngliche Nachricht- > > Von: Mat Harris [mailto:[EMAIL PROT

Printing in windows

2002-08-14 Thread doug
Anyone figure out how to trigger a nice, MFC-like printing dialogue in Windows? And use an associated API to produce printer output? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Curses-CursesWidgets-SCO Unix (why'd you think they call it curses?)

2002-07-23 Thread Doug Lentz
This may be a long shot, but I am trying to get Arthur Corliss's CursesWidgets 1.992 module to work on a SCO box. Must apologize first, I do not understand curses, no more than the average pig understands French. Server OS: SCO Open Server 5 (oxymoron, but we can't call it SCO Abandoned Server 5,

Dump an Excel Spreadsheet

2002-07-03 Thread Doug Lentz
I'm working on a script to create an Excel spreadsheet programatically, using Spreadsheet::WriteExcel. I'm using a spreadsheet written by my boss as the specification. No problems yet, but coding is tedious. I find myself thinking, "I should write a script utilizing Parse:Excel to dump an Excel sp

RE: the angle operator and really big files

2001-08-31 Thread Doug Lentz
Thanks. I'll take a look at perldoc perldebguts. Just to provide some context here: my script takes an MSDOS/Windows (columnar) text file and converts it to xBASE .DBF format, for reading in dBASE IV for Unix. I don't use any modules; basically I manipulate the text file and cat it onto the end o

The angle operator and really big files

2001-08-30 Thread Doug Lentz
I've been using to read an entire text file into an array. @buffer = ; I string-manipulate the individual array elements and then sometime later, do a $buffer = join "", @buffer; ...and this worked OK for a 80M text file. I couldn't resist and tried it out on a gigabyte monster. The script a

RE: Ok brain fart here...

2001-07-18 Thread Doug Johnson
Can we see a little more of the code? :o) Doug -Original Message- From: Richie Crews [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 11:43 AM To: Richie Crews; [EMAIL PROTECTED] Subject:RE: Ok brain fart here... Ok my problem is something not shown in the

RE: Ok brain fart here...

2001-07-18 Thread Doug Johnson
I did a cut and paste and it seems to work fine here.. What errors do you get or what result? Doug -Original Message- From: Richie Crews [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 11:27 AM To: [EMAIL PROTECTED] Subject:Ok brain fart here... Ok I am

RE: Telnet

2001-06-14 Thread Doug Johnson
becomes very powerful. Do a "man telnet" or "info telnet" and see all of the options. It will give you a little more detail of its use. But basically it is just an access window to a remote machine. Best Regards, Doug -Original Message- From: Sally [mailto:[EMA

RE: Find the number of elements in a hash.

2001-06-04 Thread Doug Johnson
Perfect! Thanks a million.. Doug --- Doug Johnson <[EMAIL PROTECTED]> wrote: > In an array to find the number of elements in an array I : > > print "$#array\n"; > > Is there a similar way to find the number of keys in a hash without > cycling through them

Find the number of elements in a hash.

2001-06-04 Thread Doug Johnson
In an array to find the number of elements in an array I : print "$#array\n"; Is there a similar way to find the number of keys in a hash without cycling through them and without assigning the hash to an array? Doug

RE: mail

2001-05-23 Thread Doug Johnson
text file containing the information you want mailed. This can even be created by the script Good Luck, Doug -Original Message- From: Yacketta,Ronald J [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 4:52 PM To: Beginners (E-mail) Subject:mail Folks, I searc

RE: Compare statement.

2001-05-17 Thread Doug Johnson
know if I have any problems. Thanks again for all of the help. Doug -Original Message- From: Jeff Pinyan [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 17, 2001 10:29 AM To: Doug Johnson Cc: [EMAIL PROTECTED] Subject:Re: Compare statement. On May 17, Doug Jo

Compare statement.

2001-05-17 Thread Doug Johnson
Is there a better way to write: my $x = "return"; if (($x = "a") || ($x = "test" ) || ($x = "return" ) || ($x = "x-retun")) { print("bunch of foo); } Could my if comparison be made smaller? I would like to compare 1 value to a list without multiple "x =". Best Regards, Doug

RE: Curses Module

2001-05-15 Thread Doug Johnson
I think I was hoping for a little more definition on the supported constants.. Doug -Original Message- From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 1:44 PM To: Doug Johnson Cc: [EMAIL PROTECTED] Subject:RE: Curses Module > No

RE: Curses Module

2001-05-15 Thread Doug Johnson
Your's works... Mine didn't. The link I used is also found on the CPAN site. It is below.. http://theoryx5.uwinnipeg.ca/CPAN/data/Curses/gen/make.Curses.html Thanks a million! Doug -Original Message- From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, Ma

RE: Curses Module

2001-05-15 Thread Doug Johnson
No, I done it the old fashion way of download untarr, (edit makefile, or any other pertinent files) perl makefile, make test, make install.. I did find the POD reference at the end of the Curses.pm file. I was hoping for a little more but I think I can weed my way through it.. Thanks, Doug

Curses Module

2001-05-15 Thread Doug Johnson
.. (perldoc etc.) Any help would be greatly appreciated. Best Regards, Doug Johnson