RE: Strange change in WinNT environment: File association to .PL now give error message

2002-07-15 Thread Cutts III, James H.
Title: RE: Strange change in WinNT environment: File association to .PL now give error message Fernando, Thanks for the suggestion. Unfortunately, the associations and file typing are correct: D:\Projects\PerlASSOC .PL.PL=Perl D:\Projects\PerlFTYPE PERLPERL="D:\BIN\Perl\bin\perl.exe"

FILEHANDLE Problem

2002-07-15 Thread steve silvers
This is going to drive me nuts I have my test snippet below #!/Perl When I run this as shown below, I get the error: Invalid argument. open(FILE, d:\path_to\textfiles\test.txt) or die Can't open $!; if(eof(FILE)) { print IM EMPTY; } else {

RE: FILEHANDLE Problem

2002-07-15 Thread Morse, Richard E.
steve silvers [mailto:[EMAIL PROTECTED]] wrote: open(FILE, d:\path_to\textfiles\test.txt) or die Can't open $!; So, um, you do know that \t is a tab in double-quoted text? Try: open(my $file, d:/path/to/your/test.txt) or die(Can't open: $!) or: open(my $file,

RE: FILEHANDLE Problem

2002-07-15 Thread henry isham
Try this... open(FILE, d:\\path_to\\textfiles\\test.txt) or die Can't open $!; Or, open(FILE, 'd:\path_to\textfiles\test.txt') or die Can't open $!; -Henry -Original Message- From: steve silvers [mailto:[EMAIL PROTECTED]] Sent: Mon 7/15/2002

Split function

2002-07-15 Thread Mangesh Paranjape
Forwarded on behalf of Moshe: I would like to know if this is OK? @array = split(/(--|;)/,$var); I would like to split on either a double dash or a semi colon with one split using ( | ). Is that viable, or do I have to test for either one, and split accordingly. Thanks. A friend of Mangesh

Re: Split function

2002-07-15 Thread Ron Grabowski
I would like to split on either a double dash or a semi colon with one split using ( | ). $_ = 'Hello-world;how--are--you;today'; print join \n, split /--|;/; ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe:

RE: Split function

2002-07-15 Thread Scot Robnett
Would it be only semantic to escape the semicolon, or could it cause a problem not to do so? I'm not asking to be picky, I really don't know. :) Scot R. inSite -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ron Grabowski Sent: Monday, July 15, 2002

RE: FILEHANDLE Problem

2002-07-15 Thread Fernando Madruga
This is going to drive me nuts I have my test snippet below When I run this as shown below, I get the error: Invalid argument. open(FILE, d:\path_to\textfiles\test.txt) or die Can't open $!; You need to replace each \ with \\ as a single \ will be interpreted as an escape character.

RE: Strange change in WinNT environment: File association to .PL now give error message

2002-07-15 Thread Fernando Madruga
Fernando, Thanks for the suggestion. Unfortunately, the associations and file typing are correct: Well, I'm out of sugestions here. Other than trying to upgrade your current version to the same one, that is, reinstalling ActivePerl, but that you probably already tried... Bye, Fernando

Re: Split function

2002-07-15 Thread $Bill Luebkert
Mangesh Paranjape wrote: Forwarded on behalf of Moshe: I would like to know if this is OK? @array = split(/(--|;)/,$var); I would like to split on either a double dash or a semi colon with one split using ( | ). Is that viable, or do I have to test for either one, and split

DBI::XBase

2002-07-15 Thread Kevin
Hello, I am getting unreliable behavior from using DBI::XBase and am trying to get to the bottom of it. Besides the .dbf files, should any other files be in the directory that I am pointing to (such as .cdx, etc.)? Any pointers in working with XBase? The behavior I am getting is that the

Re: Passing a GUID to Win32::OLE

2002-07-15 Thread Jan Dubois
On Sun, 14 Jul 2002 15:56:07 +0100, [EMAIL PROTECTED] wrote: Anybody know a way to call a method which takes a REFCLSID, like this: HRESULT foo( REFCLSID bar ); The OLE browser shows this as Sub foo( bar as GUID ) method foo; Unfortunately, Win32::GuidGen seems to return a GUID in

Re: Split function

2002-07-15 Thread Ron Grabowski
Would it be only semantic to escape the semicolon, or could it cause a problem not to do so? I'm not asking to be picky, I really don't know. :) The semi-colon is not special unless you do something like this: m;foo|bar|\;; ___ Perl-Win32-Users

Re: ActiveState's Archive-Zip.zip doesn't (?!) support Windows

2002-07-15 Thread Jan Dubois
On Mon, 15 Jul 2002 11:46:51 -0400, Thomas R Wyant_III [EMAIL PROTECTED] wrote: I believe from previous traffic on this list that ActiveState's PPM archive is built automagically from CPAN. So who do I see to get this one module, last built in 2000, corrected? I've told Neil about this just now

Re: (was Re: win32 and win32::Lanman conflicting?)

2002-07-15 Thread Jan Dubois
On Mon, 15 Jul 2002 13:21:48 +0100, Michael D. Smith [EMAIL PROTECTED] wrote: This brings up something I've been wondering about, but it worked so not to much:) When you code, use Win32::whatever; does use Win32; become available also? No, it doesn't! Please read `perldoc Win32`. I've put

Re: (was Re: win32 and win32::Lanman conflicting?)

2002-07-15 Thread Jason Hemak
Hey Jan (and anyone else with thoughts), So I did what you said. Completely uninstalled activeperl, removed the Perl tree, and then reinstalled activeperl (5.6.1 build 633) and lanman (1.0.9.2). I still get the mess at the end of this e-mail. My program consists of only this much code: #!