RE: help me with perl TK!!

2000-10-05 Thread erskine, michael

 -Original Message-
 From: Fabio Quintao [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 04, 2000 3:24 AM
 To: [EMAIL PROTECTED]
 Subject: help me with perl TK!!
 
 
 Hi all!!
 
   i have some questions that is very easy for most of you 
 people on the
 listwell i'm trying to install the TK mod but i don't know why i
 have so many problems.
   i'm using activestate, perl last version, and win 98.
   my questions are:
 
 should i have a c compiler in my computer?

You would only require a C compiler if installing/building a module/package
from C source. Usually if installing a package from CPAN, I find that I only
need a "make" program - and for win32, "nmake" is freely available for
download from Microsoft. Since most people don't have compilers on their
Win32 machines, packages can be prepared by those who do have access to a
compiler and distributed in a form suitable for use by the Perl Package
Manager (PPM). PPM comes with ActiveState Perl and it will be described in
your Perl documentation (ActiveState Perl installs a shortcut to its HTML
documentation in your start menu).

If I wanted to install the Tk package on Win32 ActiveState Perl, I would
connect to the internet, open a dos box, type "PPM install tk" (PPM is in
your PATH if ASPerl is installed with the default settings). PPM retieves
the package from ActiveState and installs it for you with documentation etc.

 after a decompress the mod from cpanwhere should i put all the
 folders and file?
 should i use makefile.pl.well i dowloaded the extension tar.gz.
 
 please can someone answer my questions..
 thanks in advance
 Fabio

when using packages from CPAN, I generally unzip them to a temp directory
and follow the instructions inthe README file which is usually...

perl makefile.pl
make
make install
make test

...for Win32, replace make with nmake.

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



Re: Regular Expression question

2000-10-05 Thread Nikola Knezevic

 I am curious, why does this exact same question keep showing up, from
 different people (I believe) and with a spaced regularity over and over
 again?

I don't know, but you are right.
The most FAQ is : How to send attachments?
The second place is reserved to: How to fetch rows?
The third : How to split line?

This is due to lack of proper (or any) search capability in mail
archive.
I wonder will there be any??

Why doesn't someone write a FAQ regarding all questions (and answers)
that pops up every week or two? this will bring a great relief to
everyone.
And then the guys from ActiveState should insert notification for
newcomers to check the FAQ first.


-- 
"If you were supposed to understand it,
we wouldn't call it code."
  -=- Knezevic Nikola -=-

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



ppm problems

2000-10-05 Thread Cliff Lloyd



Can anyone tell me what is wrong with ppm? I 
get this error message?

Global symbol "%Config" requires explicit 
package name at C:/Perl/lib/ExtUtils/MM_Unix.pm line 21.BEGIN not safe 
after errors--compilation aborted at C:/Perl/lib/ExtUtils/MM_Unix.pm line 
241.BEGIN failed--compilation aborted at C:/Perl/lib/ExtUtils/Install.pm 
line 32.BEGIN failed--compilation aborted at C:/Perl/site/lib/PPM.pm line 
14.BEGIN failed--compilation aborted at C:\Perl\bin/ppm.bat line 
20.

Any 
ideals?
Clifford Lloyd Database Administrator 
IMAGIS Technical Implementation 
Team Terrace 
Building, Rm 592, 9515 - 107 St., T5K 2C4, Phone - 422-1328, Fax - 427-5737 



how to select based on two fields?

2000-10-05 Thread Baker, Lauren

How do I update one field in a hash based on a selection 
 of two others?

 I have data like this (there are 35 total):
 $flam_table{5} = {ctype = "Capacitor",
   ptype = "Epoxy", 
   cc = "15", mass  = 0, rating  = "UL94V-0"};
 $flam_table{6} = {ctype = "Capacitor",
   ptype = "Metalized Paper", 
   cc = "15", mass  = 0, rating  = "UL94V-0"};
 $flam_table{7} = {ctype = "Inductor",
   ptype = "Thermoplastic", 
   cc = "18", mass  = 0, rating  = "UL94V-0"};

I then have a list of items, where I can figure out the
"cc" and "ptype" values. I then want to select the correct
entry and update the mass entry (the list of items has a quantity
and unit mass - so I multiply and add to the appropriate
entry). After going thru the list of items, I then spit out
all these 35 entries into a spreadsheet, one field per 
column.

Thanks,
Lauren
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users