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, 'fi

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.41>perl 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

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 C:/Perl/sit

RE: Forking Server and termination of whole process

2003-01-28 Thread Adam Frielink
filehandles > print $sock "BYE\n"; > close $WTR; > close $RDR; > close($sock); # Close socket in child process > last; # Exit current WHILE loop to proceed to > Exitting child > } > >

[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... $CR->Pri

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: http://listserv.ActiveStat

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 wh

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 th

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

DIF file format (used by Excel) conversion

2002-03-26 Thread Adam Frielink
Does anyone know of a module for converting DIF files to any other file format. I have the specification for the DIF format but it will be a small hassle to implement and I thought it would be nice to not re-invent the wheel. Or would people suggest having it imported into Excel/Access and then

RE: Question re: web passing control to perl and back again

2002-03-15 Thread Adam Frielink
this works also, the difference between the two options provided would be whether you want the url for the next.htm file to be visible in the browser. Decide what is best for your needs. Adam > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of C. > Chu

RE: Question re: web passing control to perl and back again

2002-03-15 Thread Adam Frielink
Well, in the output from your perl script (I am assuming you are doing it as a CGI), use the redirection header to advise the browser to goto a new page...  The actual output looks similar to this...   This goes in the portion of the website.     The '5' in that tag tells the browser to w

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 > -

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=module&query=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

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 C:/Perl/si

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

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 > >

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- > Fro

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

OT: Exchange Server Log Files

2001-10-10 Thread Adam Frielink
file 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: 'Christopher

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 t

RE: Please explain this error message...

2001-05-28 Thread Adam Frielink
. If there are multiple pages, append onto the original file. Adam Frielink Tyco Plastics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Meegan Goad Sent: Friday, May 25, 2001 4:06 PM To: 'Charles Pelkey'; [EMAIL PROTECTED] Subject: RE: Plea

thread/fork on Win98

2001-05-23 Thread Adam Frielink
hould be intertwined (as they are when I run 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

RE: Mime content

2001-05-17 Thread Adam Frielink
ation from the registered apps. 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

[OLE] Crystal Reports Fixed, but another question

2001-05-15 Thread Adam Frielink
g the object? Also, am I still consuming memory after the Crystal object has been undef'd? Thanks for the wisdom Adam Frielink ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

RE: OLE and Crystal Reports

2001-05-10 Thread Adam Frielink
Object. 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- Fr

Perl/Tk beginner question...

2001-04-23 Thread Adam Frielink
y. So, I don't know 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 })-

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, mod

RE: Perl2Exe problems (again)

2001-04-18 Thread Adam Frielink
just 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 pro

Perl2Exe problems (again)

2001-04-18 Thread Adam Frielink
BC; # (this is 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