RE: Can we do gui testing using Perl

2005-11-15 Thread Daniel Kurtz
Well, you can test web apps in IE using SAMIE, although I've found Watir (which uses Ruby) to be more mature (even though it's 'younger'), easier to use, and with a more active community to lend a hand. Neither of them has a 'recorder' like WinRunner, strictly scripting. I'd give you the various

RE: Directories into arrays, again.

2005-08-29 Thread Daniel Kurtz
From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Or weren't. So its working now then? What changed? Changes to the file system wrought in the shell are not visible to the calling Perl program until the shell's file handle is closed or otherwise reset. Simply had to close() the file handle

RE: Need a list of files in a dir.

2005-08-26 Thread Daniel Kurtz
Ooh ooh ooh! One I know! open(COMMAND, dir |); @files = COMMAND; Daniel -Original Message- From: Luinrandir [mailto:[EMAIL PROTECTED] Sent: Thursday, August 25, 2005 21:33 To: beginners@perl.org Subject: Need a list of files in a dir. How do I get the list of files in a DIR and put

RE: Need a list of files in a dir.

2005-08-26 Thread Daniel Kurtz
Bob Showalter wrote: Please tell me you're kidding. Why? It works. The question asked how you can do it, not the BEST way to do it. And after a week of Perling, this was the one way I knew. Now I know two ways. g daniel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Directories into arrays, again.

2005-08-26 Thread Daniel Kurtz
OK, since everyone's making fun of my suggestion of using the output of a shell command as a means of getting a directory listing into an array g, please explain to me what's wrong with this code I'm trying, using opendir and readdir: opendir( DIR1, .); @before = readdir(DIR); closedir(DIR1); #

RE: Directories into arrays, again.

2005-08-26 Thread Daniel Kurtz
Sorry, obviously the code is supposed to read: opendir( DIR1, .); @before = readdir(DIR1); closedir(DIR1); # Execute a command that backs up every file in the directory # with a .bak extension. opendir( DIR2, .); @after = readdir(DIR2); closedir(DIR2); It still doesn't work. daniel -- To

RE: Directories into arrays, again.

2005-08-26 Thread Daniel Kurtz
Excellent points, all From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] And a reason why using a shell command to copy a file is a bad idea. Well, the 'shell' and 'copy' association in this case is actually something of a red herring. The point of this particular script is not to copy files,

RE: Directories into arrays, again.

2005-08-26 Thread Daniel Kurtz
From: JupiterHost.Net [mailto:[EMAIL PROTECTED] # Execute a command that backs up every file in the directory # with a .bak extension. Um, ok so you're wondering why there are no .bak files? Then that would be the code to show :) although I bet strict/warnings/and checking your open's (or

RE: Need a list of files in a dir.

2005-08-26 Thread Daniel Kurtz
From: Randal L. Schwartz [mailto:[EMAIL PROTECTED] Daniel Why? It works. Not on Unix it doesn't. And there are far more Unix installations of Perl than Windows installations of Perl. Good point. Although... while I'm certain that a higher PERCENTAGE of Unix systems have Perl than Windows

RE: Need a list of files in a dir.

2005-08-26 Thread Daniel Kurtz
From: Bob Showalter [mailto:[EMAIL PROTECTED] OK, you weren't kidding. Since you're new to Perl, you get a free pass :~) I appreciate the indulgence g. Seriously, though, not all of us run Perl on Windows. Your approach is Windows-specific. True, I hadn't thought of that. I'm primarily a

Regular expression not working as expected

2005-08-11 Thread Daniel Kurtz
=~ /a{2,4}/ = true fa =~ /a{2,4}/ = true What am I doing wrong, or misunderstanding? Daniel Kurtz

RE: Regular expression not working as expected

2005-08-11 Thread Daniel Kurtz
-Original Message- From: Robin [mailto:[EMAIL PROTECTED] Sent: Thursday, August 11, 2005 09:27 To: beginners@perl.org Subject: Re: Regular expression not working as expected This is correct, it's because you're saying find two 'o' next to each other somewhere, with no other