Re: Active Perl 5.6.1 (633) on Win2k (Sp 2) unlink is failing?

2003-07-11 Thread Jenda Krynicky
From: [EMAIL PROTECTED] It appears that the following unlink is failing on Win2k (Service Pack 3). It did work on Win 2k (sp2) Win NT 4.0. Have any one seen this? I am using network setup Active Perl 5.6.1 (Build 633) $unlink_ccpid = unlink($cc_ppid); exit (0); Maybe the file is

Re: variable in memorie

2003-08-29 Thread Jenda Krynicky
From: Administrador Internet | Intranet ESSAL S.A. [EMAIL PROTECTED] Is there a way to maintain one variable after the script (app) has finished? understood to me? i mean that this variable i can invoke it in an other script, executed after the first? You have to write it somewhere (to a file

Re: Perlcc help

2003-08-29 Thread Jenda Krynicky
From: Trainor, Nick [EMAIL PROTECTED] Newcomer to the world of Active Perl 5.8. Does this perlcc utility work? Did I not install some missing libs? Any help appreciated. From the docs: The code generated in this way is not guaranteed to work. The whole codegen suite

Re: Another Dos question!

2003-09-11 Thread Jenda Krynicky
From: jon sof [EMAIL PROTECTED] i have the following function call $filename_winword=C:/Program Files/Microsoft Office/Office/WINWORD.EXE; $result-{DOCUMENT_NAME}= the filename from the database. system (start, ,$filename_winword,/n , docs/$result-{DOCUMENT_NAME}); You really should

RE: Another Dos question!

2003-09-12 Thread Jenda Krynicky
From: jon sof [EMAIL PROTECTED] Perl is that same. I tried system(start,$result-{DOCUMENT_NAME}) and it seems to work, however under win2k it doesn't as fas as on an win98 system. Obviously, there are some changes between these systems concerning the Dos Shell. Actually not. In this case

Re: Activer Perl with Thread..

2003-09-17 Thread Jenda Krynicky
From: intertwingled [EMAIL PROTECTED] Threads are for wussies. Real programmers use processes and communicate with semaphores. ;-) Tony Real programmers use whatever allows them to acomplish the task! Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When

Re: ActivePerl 5.8 Build 806 does't come with DBI module?

2003-10-17 Thread Jenda Krynicky
From: Carlos Lopes [EMAIL PROTECTED] i've unistalled ActivePerl 5.6 and installed ActivePerl 5.8 Build 806 because i've seen on activestate.com that DBI module is already included on version 5.8, but seems to me that DBI isn't included since i've got the same problem saying: Can't locate

Re: PerlScript - FileSystemObject - Windows Scrpting Host

2008-04-02 Thread Jenda Krynicky
From: oscar gil [EMAIL PROTECTED] Hello everybody, Can anyone tell me why this simple code does not work? Job ID=Test script language=PerlScript $objFSO = $WScript-CreateObject(Scripting.FileSystemObject); $objFile = $objFSO-CreateTextFile(test2.txt, ForWriting);

Re: Why does this work?

2008-05-20 Thread Jenda Krynicky
From: Barry Brevik [EMAIL PROTECTED] OK, I've stumped myself. I wanted to assign 0 to several variables, except for a single variable that should be set to 1. Before I knew what I was doing I whipped this code into my editor: ($frow = $ax = $bx = $cx = 0)++; ...and it works as I

Re: Net::SSH::W32perl /Net:SSH::Perl on activeperl win32

2008-06-13 Thread Jenda Krynicky
From: listmail [EMAIL PROTECTED] I've been using Net::SSH::W32perl 0.06 originally provided by a repo on http://www.soulcage.net/ (Scott Scecina) for a few years now. And my install still works great. Unfortunately this site is down and I can no longer find that specific version and

Re: [Fwd: Net::SSH::W32perl /Net:SSH::Perl on activeperl win32]

2008-06-16 Thread Jenda Krynicky
From: Michael Ellery [EMAIL PROTECTED] I've been trying to use Net::SFTP recently, without luck. When I try to execute a simple fetch with code like: use strict; use Net::SFTP; my $scp = new Net::SFTP( 'SOMEHOST', user = 'SOMEUSER', password = 'SOMEPASS', ) or die

Re: Communication between Perl and VB script

2008-06-25 Thread Jenda Krynicky
From: [EMAIL PROTECTED] I want to call a Perl script ( assume test.pl ) in VB script (final.vbs). Is it possible to do this? If it is, could you please send me a snippet of the code? Ask in a VB group. I think it had to be done wia the Scripting.WShell or somesuch object, but I

Re: problem parsing with XML::DOM

2008-07-10 Thread Jenda Krynicky
From: Avraham Shapiro [EMAIL PROTECTED] I'm crossposting this to Perl and XML listservs since it involves XML parsing from within Perl. I'm having trouble parsing a simple bit of XML with XML::XQL::DOM. Why would anyone want to use DOM to work with XML? I doubt there is any more wordy and

Re: Working with XML in Perl

2008-11-11 Thread Jenda Krynicky
From: Curtis Leach [EMAIL PROTECTED] I'm using a Perl 5.8.8 build on a Windows Server platform and I need to work with XML files. Is there a preferred module for use when working with XML in Perl? I'm new to XML I'm just looking for directions to XML modules to look at so I don't waste

Re: How to get yesterday's date in Perl

2008-12-03 Thread Jenda Krynicky
From: zilore mumba [EMAIL PROTECTED] After brouwsing a lot ofdocumentation I cannot find how to get yesterday's or tomorrow's date in Perl, like `date --date -1 day +%Y%m%d` in bash. Is this possible in Perl? I am making date directories, like 20081203. If I add, I get a problem at the

Re: \Q \E differences depending which Perl Version is used

2008-12-08 Thread Jenda Krynicky
From: Patrick Schiess [EMAIL PROTECTED] can someone of you guys telling me why e.g. this command: print ([EMAIL PROTECTED] =~ /[EMAIL PROTECTED]/i); on a system with perl 5.10 does not give me back a matching, as the same expression gives me back a matching on a perl 5.8.8 system?

Re: Initializing list of variables

2008-12-11 Thread Jenda Krynicky
From: deane.rothenma...@walgreens.com I'm almost ashamed to have to post this, because I know this is a newbie question, and I'm not really one of those any more, but I'm drawing a blank. Isn't there an easier way to initialize a list of variables, to a common value, than this: my ($a,

Re: Perl Out of Memory! Issue

2008-12-15 Thread Jenda Krynicky
From: Zarabozo, Francisco \(GE, Corporate\) fzarab...@hotmail.com I'm getting the Out of memory! error from ActivePerl 5.10 (1003) running on a box with Intel Core 2 Duo 2.4 Ghz with 4 GB in ram with Windows XP Pro. I'm using XML::Simple to parse a 120 MB XML file. Don't. While XML::Simple

Re: sendmail attachment

2009-01-02 Thread Jenda Krynicky
From: Dr. Mario Sanchez msanc...@cs.fiu.edu i *have* to use a hosting service that does not have/allow Mime::Lite so i am pretty much stuck with the classic sendmail. but i need to send attachments. the hosting service is godaddy - i mention them not to denigrate but in case someone else found

Perl for ISAPI and CRLF

2009-02-03 Thread Jenda Krynicky
I have ActivePerl v5.8.8 build 822 and Windblows Vista Home Premium with its builtin IIS (but I see the same behaviour under MS Windows Server 2003) and was using the following to print the CGI headers: print HTTP/1.0 200 OK\n if($ENV{'PerlXS'} eq 'PerlIS'); print Content-type:

Re: Perl for ISAPI and CRLF

2009-02-04 Thread Jenda Krynicky
From: Bill Luebkert dbec...@roadrunner.com Jenda Krynicky wrote: How's it going man - long time no talk. Well, you know :-) Obviously it's got something to do with the IS version. You should check for kicks to see what binmode returns (T/F) when you do the :crlf option on STDOUT. I did

Re: ODBC DB connect fails after switching to Oracle

2009-03-24 Thread Jenda Krynicky
From: Oeschey, Lars (I/ET-83, extern) extern.lars.oesc...@audi.de I have to switch databases for some applications, before we had MSSQL, and now it's oracle. I used DBI::ODBC for this, so I only changed the ODBC connection to be an Oracle one, and it *should* work. However I get this error:

Re: Problem with Win32::FileOp-Disconnect

2009-06-18 Thread Jenda Krynicky
From: Oeschey, Lars (I/ET-83, extern) extern.lars.oesc...@audi.de I'm writing a simple network copy script, but fail at disconnecting an already connected drive. I got this so far: snip use strict; use warnings; use Win32::FileOp; my $user=xx; my

FYI: IIS, Windblows Jehovista SP1 and partial response

2009-08-29 Thread Jenda Krynicky
Yesterday I noticed that by webbased Perl scripts stopped working. That is the scripts ran OK, but the webserver (IIS7.0 under Windows Vista SP1) only sent part of the output. Both IE8 and Google Chrome kept on waiting for the rest of the pare until timeout, LWP::UserAgent sometimes returned

Re: Help with DBI to get HDD size of C drive of remote PC running MS-SQL Express 2005

2009-10-13 Thread Jenda Krynicky
From: David Evans dev...@monsoon.co.uk This is my Perl: *Begin Perl Code* use DBIx::SQLEngine; $sqllist1 = IF EXISTS (\nSELECT 1 FROM INFORMATION_SCHEMA.ROUTINES\nWHERE ROUTINE_NAME = 'GetDriveSize'\nAND ROUTINE_SCHEMA = 'dbo'\nAND ROUTINE_TYPE =

Re: Hash performance v. hash size setting

2010-09-03 Thread Jenda Krynicky
Premature optimization is the root of all evil! Are you sure you do need to fiddle with these things? Does it make a measurable difference? From: deane.rothenma...@walgreens.com This may be merely a philosophical debate, but I have a performance-related question regarding pre-allocation to

Re: Best way to compare to files in Perl

2010-09-25 Thread Jenda Krynicky
Because it's all backwards! Why is that? Because it's hard to read. Why? Please do not top post! Francisco Zarabozo I have thousands of files that I need to analyze with Perl and discard any duplicates. I also need to implement a way to *not* save on disk any file that a visitor uploads on

Re: Cosmetic questions: order of module use significant? double invocation okay?

2011-07-20 Thread Jenda Krynicky
From: Rothenmaier, Deane C. deane.rothenma...@walgreens.com Question one: I've inherited a program (if it matters, the program's compiled to an executable, rather than run by the interpreter) that uses about a dozen different modules and, picky soul that I am, I'd like to list them in

Re: Overloading a Perl Operator

2011-10-05 Thread Jenda Krynicky
From: Phillip Richcreek pwrichcr...@gmail.com I'm going to use a package called Data::Money in place of a similar module that I had previously used but is no longer available for downloading/ installing. Data::Money does everything that the other package does (as far as the features that I am

<    1   2