RE: counting characters in a text file

2003-10-12 Thread Adam Frielink
What he has is useable except for this little caveat... and displays these amounts in an diagram. (vertical axis the amounts and horizontal a-z;0-9;special characters, whereby capital letters and lowercase letters are treated the same) use strict; use warnings; open FH, 'file' or die

RE: regular expression question

2003-03-28 Thread Adam Frielink
I have another question, I have string like GENERATION 116, How can I get rid of , of the string? If you want to remove the 1st character if it is a , then use this... $var =~ s///; $var =~ s/^//; #This removes it only if it is the first character

Win32-API 0.41 Compile and install help

2003-03-19 Thread Adam Frielink
I cannot find a PPM for this and when I compile it with VC++ v6 standard, I keep getting failed tests during the 'nmake test' stage. C:\Documents and Settings\Adam\Desktop\Win32-API-0.41.tar\Win32-API-0.41perl Ma kefile.pl Writing Makefile for Win32::API::Callback Writing Makefile for Win32::API

RE: Win32::API and building a struct

2003-02-28 Thread Adam Frielink
Anyone have some though about how to do this properly? Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Adam Frielink Sent: Thursday, February 27, 2003 1:15 PM To: Perl-Win32-Users (E-mail) Subject: Win32::API and building a struct Working

Deciphering DBI trace fro DBD-XBase

2003-02-13 Thread Adam Frielink
I posted this yesterday on the Win32-database list and got no response. Can anyone help with this problem? I am trying to debug this script of mine, but I cannot seen to understand why I get the following error... Tk::Error: Can't locate object method new via package XBase at

RE: Forking Server and termination of whole process

2003-01-28 Thread Adam Frielink
not crash the server? Like wrapping the code in an eval of some kind? Thank you, Adam Frielink ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

[OLE] TYPE MISMATCH ERROR

2003-01-15 Thread Adam Frielink
Using method that requires a boolean (TRUE/FALSE) value sent, I get a type/mismatch error when I pass a 1 or 0. I know I cannot type a perl scalar to a boolean, but is there a way around this? My project hinges on setting this one value, any help is appreciated. The code is simple...

RE: Changing the Windows Background NT 4.0

2002-08-01 Thread Adam Frielink
It seems that If the image type is .BMP it works fine. But if its a .JPG it doesn't. Joy. The JPG would work if you turn on the 'Active Desktop' ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe:

Determining Default 'My Documents' folder path

2002-05-30 Thread Adam Frielink
I have been looking for a way to determine the path of the 'My Documents' folder for a PC. I assume this is a registry setting. I did a search for this through MY registry and the only potential references I can find refer to a shell32.dll,9227. I don't have a clue as to what that means. Is

RE: Determining Default 'My Documents' folder path

2002-05-30 Thread Adam Frielink
A little more research turned up the SHGetSpecialFolderLocation API call from the Shell32 library. You can verify this on the MSDN web site in their reference area. I would highly recommend getting this folder location through the API. Microsoft has many ways of punishing those who

RE: Tk's messagebox

2002-04-24 Thread Adam Frielink
I have been trying to use Tk's Message Box without success... Try Tk::DialogBox - create and manipulate a dialog screen. use Tk::DialogBox ... $d = $top-DialogBox(-title = Title, -buttons = [OK, Cancel]); $w = $d-add(Widget, args); ... $button = $d-Show;

PCL Viewer designed in Perl?

2002-04-18 Thread Adam Frielink
I have access to some demostration software that displays the contents of HPPCL codes visually on screen. Has anyone seen something like this attempted with Perl? This software I am reviewing also works with zipped PCL (about 5% the size of the original PCL) and 10% the size of a comparable PDF

RE: MSAccess file format question...

2002-02-28 Thread Adam Frielink
Well, to create a mdb on the fly, the easiest way is to Use ACCESS via OLE. But Mike's suggestions is excellent, simply copy and rename a black one. In addition, then use a DSN-Less ODBC connection to access it from there and transfer all the data you need. Adam Frielink -Original Message

DIF (Data Interchange Format) module?

2002-02-08 Thread Adam Frielink
I looked at cpan for a module for the DIF file format(http://search.cpan.org/search?mode=modulequery=DIF) and didn't find one, does anyone know if something exists that can be used? Could DBD::AnyData be used for this if I found a filter for it? Thanks for any insight... Adam

DBD::XBase PPM version?

2002-02-01 Thread Adam Frielink
When I check my documentation and use PPM to query my installed package, the DBD-XBase module is 0.161 When I print the version from the Module itself... print $DBD::XBase::VERSION\n; I get a 0.147 This doesn't seem right to me, is there anything wrong with the installation? I have AS 628

DBD::AnyData and/or DBD::CSV problem

2002-01-30 Thread Adam Frielink
I have a TAB delimited flat file containing Sales History records This is my first attempt at the DBD:AnyData (got a similar error from DBD::CSV also) module and I consistently get this error from the following code... DBD::AnyData::db prepare failed: Parse error near () FROM SHEPC at

Module for RLE compression?

2002-01-09 Thread Adam Frielink
Greetings all, Does anyone have knowledge of a module to handle RLE compression? I email alot of PDF documents and was hoping to use some form of compression on these files. Anyone have another thought of a better way to handle the compression? Adam Frielink Tyco Plastics

Perl/Tk Entry widget questions

2002-01-07 Thread Adam Frielink
Greetings, Here is a simple one, does anyone know how to limit the length of a Entry widget in Tk to be no more than 75 characters? Will this require a Validate callback, or is there an option that can be setup when I create the Entry widget? Thanks, Adam Frielink Tyco Plastics

RE: Perl/Tk Entry widget questions

2002-01-07 Thread Adam Frielink
Thanks Jack. I guess I wasn't specific enough in my original post to say that I cannot allow an entry of more than 75 characters and not an entry box of 75 character width. If I can't find it, I will email you. Adam Frielink Tyco Plastics -Original Message- From: Dunnigan,Jack [Edm

RE: Perl/Tk Entry widget questions

2002-01-07 Thread Adam Frielink
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dunnigan,Jack [Edm] -Original Message- From: Adam Frielink [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 12:16 PM Thanks Jack. I guess I wasn't specific enough in my

OT: Exchange Server Log Files

2001-10-10 Thread Adam Frielink
containing this information? Thanks, Adam Frielink ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

RE: Curiosity: A.I. - Fuzzy Logic, Neural Nets

2001-07-03 Thread Adam Frielink
You may want to check out the mailing list on the AI subject as well.. http://aspn.activestate.com/ASPN/Mail/Browse/Threaded/perl-AI Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Toby Stuart Sent: Tuesday, July 03, 2001 12:46 AM To:

RE: Perl/Tk application woes

2001-06-28 Thread Adam Frielink
Byron, After reading your initial post, it seems you want to open a Tk window through a Webbrowser? Is that correct. If so, I don't think Tk is (or was ever) intended for that purpose. Though, I could be very wrong. Am I understanding your need properly? If you are wanting to 'put a file on

thread/fork on Win98

2001-05-23 Thread Adam Frielink
this on my Unix box). Could someone clarify the issue for me? Does fork() work on Win98 (or 95, my company is a little behind the times on some PCs) and if so, why doesn't my AS build 623 not work properly. Will I need to compile my own (not a preferable choice)? Adam Frielink

RE: Mime content

2001-05-17 Thread Adam Frielink
. There is a 'Content Type (MIME):' entry in the bottom of that screen. Adam Frielink Tyco Plastics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ken Cornetet Sent: Thursday, May 17, 2001 3:22 PM To: '[EMAIL PROTECTED]' Subject: RE: Mime content I'd

RE: OLE and Crystal Reports

2001-05-10 Thread Adam Frielink
. Is there a place where a better definition for this error can be researched. I use cut and paste from the method browser provided with the software, so I the method spelling is matching the documentation. Any further thoughts? Adam Frielink Tyco Plastics -Original Message- From: [EMAIL

Perl/Tk beginner question...

2001-04-23 Thread Adam Frielink
where the problem is found. Any thoughts, TIA, Adam Frielink Tyco Plastics use Tk; $mw = new MainWindow; $mw-title(Button Manipulation); my $exit_b = $mw-Button(-text = Exit, -command = sub { exit })-pack; $var = Disable Exit; $mw-Button( -textvariable = \$var

Win32::OLE and Crystal Reports

2001-04-19 Thread Adam Frielink
Being the I was a Unix perl fellow prior to this job I am doing now, I am not familiar with the world of OLE. Does anyone know of a website where perl and OLE are discussed beyond what was in the ActiveState documentation? My current project needs to start the Crystal Report's Report Viewer,

Perl2Exe problems (again)

2001-04-18 Thread Adam Frielink
my line 3.) USE DBI; use DBD::ODBC; use File::Spec; use File::Spec::Win32; TIA, Adam Frielink Tyco Plastics ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

RE: Perl2Exe problems (again)

2001-04-18 Thread Adam Frielink
rewrite to use DBD::ODBC only, which I should have done in the first place. Adam Frielink Tyco Plastics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Adam Frielink Sent: Wednesday, April 18, 2001 1:30 PM To: [EMAIL PROTECTED] Subject: Perl2Exe problems