I have some picturues in the server,so i want to save URL of picture via mysql and display internet.
How to wirte this perl program?
Thanks.
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.Active
What is the best way to compare 2 text files for
matching. Let's say both files have just people names
Thanks
File1 File2
James Joe
TinaPatrick
Steve James
...
I'm lazy and don't like reinventing the wheel although it can be fun
somet
Is there a simple way to get the amount of memory being used by a Perl
data structure? I know that there may be problems with multiple data
structures sharing a common list or hash, but what I'd really like is to
do something like:
my $nBytes = bytesused($href);
and get the total memory used
I will be out of the office starting 11/11/2005 and will not return until
11/14/2005.
I will be checking my e-mail regularly on Friday.
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.Acti
Is there a simple way to get the amount of memory being used by a
Perl data structure? I know that there may be problems with multiple
data structures sharing a common list or hash, but what I'd really
like is to do something like:
my $nBytes = bytesused($href);
and get the total memory used
> What is the best way to compare 2 text files for
> matching. Let's say both files have just people names
> Thanks
>
Does it matter what position they are in, or do you only want to know what
exists in both files? If it doesn't matter, you can do it as follows:
my $count = 0;
my $count2 = 0;
Hashes are your friends!
my $file1 = "file1";
my $file2 = "file2";
my %file1_names;
open(IN1,$file1) or die $!;
while () {
chomp;
$file1{$_} = 1;
}
close IN1;
open(IN2,$file2) or die $!;
while () {
chomp;
print "Found matching name: '$_'\n" if $file1{$_};
}
close IN2;
-Original Mess
Артем Аветисян wrote:
> Hello, Perl Users.
>
> I have:
> ...
> $string =<<'EOS';
> Returns the offset of where the last m//g search left off for the variable in
> question
> ($_ is used when the variable is not specified). Note that 0 is a valid match
> offset,
> while undef indicates that th
Hi,
What is the best way to compare 2 text files for
matching. Let's say both files have just people names
Thanks
File1 File2
James Joe
TinaPatrick
Steve James
...
__
Yahoo! Ma
Title: Counting matches
Артем Аветисян wrote, on Fri 11-Nov-05 11:06
: I have:: ...: $string =<<'EOS';:
Returns the offset of where the last m//g search left off for the variable in
question: ($_ is used when the variable is not specified). Note that 0 is a
valid match offset,: while undef
I've played with Win32::GuiTest a bit, but not SAM
or this specfic purpose.
Sometimes I'll have difficulties sending keys to
the proper window.
To fix that, I'd often use GuiTest's FindWindowLike
to get the window filehandle.
Then I have used either SetFocus to that window, or
sometimes Sho
Hello, Perl Users.
I have:
...
$string =<<'EOS';
Returns the offset of where the last m//g search left off for the variable in
question
($_ is used when the variable is not specified). Note that 0 is a valid match
offset,
while undef indicates that the search position is reset (usually due to
Hi Randy and Lynn,
And thanks for your quick and informative replies.
Veli-Pekka Tätilä wrote:
How can I tell which packages are supplied with a given Active State
Perl release? I've often been wondering this when distributing some of
my own scripts to other people running Windows.
Randy wrot
13 matches
Mail list logo