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 So
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 h
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 .
>>> Seriously, though, not all of us run Perl on Windows. Your approach
is
Windows-specific. <<<
True, I hadn't thought of that. I'm p
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 Wind
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
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 fi
From: Daniel Kurtz [mailto:[EMAIL PROTECTED]
>>> Why does @after end up looking exactly like @before? Is there some
buffering going on here? And if so, how do I clear it? <<<
Never mind, I figured it out. The file copying operation is another
shell operation (c'mon, I
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
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
, please explain to me what's wrong with this code I'm trying, using
opendir and readdir:
opendir( DIR1, ".");
@before = readdir(DIR);
closedir(DIR1);
#
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.
daniel
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
Ooh ooh ooh! One I know!
open(COMMAND, "dir |");
@files = ;
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 in an a
-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 rest
= true
"fa" =~ /a{2,4}/ = false
Instead I get:
"fa" =~ /a{2,4}/ = false
"faa" =~ /a{2,4}/ = true
"faaa" =~ /a{2,4}/ = true
"f" =~ /a{2,4}/ = true
"fa" =~ /a{2,4}/ = true
What am I doing wrong, or misunderstanding?
Daniel Kurtz
13 matches
Mail list logo