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

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

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

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

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

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: 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: \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: 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: 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: 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: 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: [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: 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: 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: 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: 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: 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: 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: 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: 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: 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: User contributions

2003-07-07 Thread Jenda Krynicky
From: Stephen Patterson [EMAIL PROTECTED] On 07 Jul 03, sharanbas raghapur ([EMAIL PROTECTED]) wrote: Dear Members, Wanted to know if users can contribute to perl (say in the form of commonly used subroutines etc.)? If answer it yes, how does it normally happen? Yes, thats where all

Re: BusinessObjects with perl

2003-06-26 Thread Jenda Krynicky
From: [EMAIL PROTECTED] Subject:BusinessObjects with perl I try to pilot a BusinessObjects application using perl on a WinNT platform. I would like to open a document, refresh, save, export... Every example of code related to the topic

Re: uninitialized value problem in migrated app

2003-06-26 Thread Jenda Krynicky
From: $Bill Luebkert [EMAIL PROTECTED] News Portal wrote: Hi, I'm Dave. I know you must be very busy, but I hope you can help me with this. I migrated an app from Linux to Windows2000. Now, some of it runs and access data from the original MySql database but some code

Re: slurping in win xp vs hpux

2003-06-09 Thread Jenda Krynicky
From: Ron Hartikka [EMAIL PROTECTED] I have a script that slurps a couple of 10-20 MB files and then processes them. On my newish xp laptop, the slurps take around 150 of the 200 sec run time. On the oldish HPUX ws the slurps take around 20 of the 500 sec run time. So, my UX processor

Re: perl newbie question

2003-06-08 Thread Jenda Krynicky
From: Chhabria, Kavita - Apogent [EMAIL PROTECTED] Can someone kindly explain me what this piece of perl code is doing step by step, I am new to Perl and am unable to understand this piece of code contained within a module. sub new { my ( $class, %args ) = @_; This is a constructor.

Re: getting values of lexical variables in subs

2003-06-06 Thread Jenda Krynicky
From: $Bill Luebkert [EMAIL PROTECTED] You know, I've never found the need to create a sub embedded in a sub. Well I did quite often. In (Turbo) Pascal where it did make sense. (If I remember well.) In Perl it doesn't. And I think Perl should print a warning if you ever do it. (Except of

Re: Problems sending mail via IO::Socket

2003-05-31 Thread Jenda Krynicky
From: [EMAIL PROTECTED] On 30 May 2003 at 14:56, Jenda Krynicky wrote: From: [EMAIL PROTECTED] i trys to re-animate a script that (i suppose) work for me a while ago an my osx-darwin box. Now, i am sitting on a win32 maschine and get totally confused. I open a Tcp-Socket to port 25

Re: perlis spiking cpu in iis

2003-05-30 Thread Jenda Krynicky
From: john cesta [EMAIL PROTECTED] On Thu, I have been working with Microsoft and they have discovered a thread that show perlis spiking the cpu in the inetinfo.exe process. What do you mean by spiking? You mean using the whole CPU power for a short time? Would you like better if it

Re: Why is PHP popular?

2003-05-29 Thread Jenda Krynicky
From: intertwingled [EMAIL PROTECTED] Oh, I use Perl to write CGI scripts all the time. I just don't use CGI.pm, because I think it's a silly module. Tony I agree to a degree. Especialy yhe HTML generation code should have been in a different module. What do use? Jenda = [EMAIL

Re: Installing TermReadKey - help please

2003-03-27 Thread Jenda Krynicky
From: Ed Bachmann [EMAIL PROTECTED] I am running AS Perl 5.8.0.805 under Windows 2000 and would like to install the module, TermReadKey. I think it was once available at ASPN, but it's not there now. I've requested that ASPN make it available, but so far no luck. Does anyone know whether the

Re: Modules for Perl 5.8 (8xx builds)

2003-03-18 Thread Jenda Krynicky
From: Matthew Keene [EMAIL PROTECTED] There seem to be quite a lot of modules missing from the PPMPackage list for the 8xx builds (from http://ppm.activestate.com/PPMPackages/zips/8xx-builds-only/Windows/). I'm specifically looking for DBD::Oracle(8), but there are 3448

Re: Could not connect to SMTP server using Mail::Sender - Revised

2003-03-12 Thread Jenda Krynicky
From: Sidhartha Priye \(local\) [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject:Could not connect to SMTP server using Mail::Sender - Revised Date sent: Wed, 5 Feb 2003 13:30:23 -0500 What's this? Why did I get

RE: Pointers to some memory

2003-03-03 Thread Jenda Krynicky
From: Damman Pascal [EMAIL PROTECTED] From: Damman Pascal [EMAIL PROTECTED] I am trying to use the runtime library netapi32 (using Win32::API) to enumerate the groups on a domain. I get the result ERROR_MORE_DATA and 85 groups returned, so the function works well. BUT: You have to let

Re: variables?

2003-02-24 Thread Jenda Krynicky
From: Moreno, Javier \(GXS, Softtek\) [EMAIL PROTECTED] I have browsed through the documentation and through responses to this list. I always see 'use strict' as a best practice for catching errors. But I always get a whole lot of them because I usually do not scope variables, the most I do is

Re: Mail::sender and txt attachments.

2003-02-20 Thread Jenda Krynicky
From: Ulf Lowig [EMAIL PROTECTED] I am having some problem whit Mail-sender using MailFile method to send attachments. When sending a txt file it's being truncated at the end of the file. Is this a known problem or am I doing something wrong??? If I change the file extension to something

Re: passing variables to modules

2003-02-05 Thread Jenda Krynicky
From: [EMAIL PROTECTED] I'm still trying to figure out, how to pass variables to a module... I looked in every book availible to me, but couldn't find anything. A main::variable also doesn't work... I don't think I understand what you want. Could you give us an example of

Re: Correction:Win32::Sound::WaveOut(WAVFILE) -SOLVED

2003-02-03 Thread Jenda Krynicky
From: Geert Storme [EMAIL PROTECTED] Thank you, $Bill Luebkert [[EMAIL PROTECTED]]!!! That worked! You are the hero of the day! Pls have your chance incorporated forever into that defective module. As for CPAN and ASPN, sorry but here come some harsh words... How is it possible that

RE: Win32::FileOp BrowseForFolder

2003-02-03 Thread Jenda Krynicky
From: Arms, Mike [EMAIL PROTECTED] Jenda Krynicky ([EMAIL PROTECTED]) wrote: From: [EMAIL PROTECTED] Did anyone ever use that Dialog? The problem is, it says it can only use CSIDL_xxx Constants as Parameter for $rootdir. I'd like to start browsing in the current script path

Re: Pipes and threads?

2003-02-03 Thread Jenda Krynicky
From: Hudson T Clark [EMAIL PROTECTED] Is it possiable to get two pipes working between two threads? or a thread and the main proccess? Yes. The problem is that under Windows the select() (the four parameter form!) works only on socket()s :-((( Therefore you'll have to use Win32::Semaphore or

RE: Win32::FileOp BrowseForFolder

2003-02-03 Thread Jenda Krynicky
From: Arms, Mike [EMAIL PROTECTED] Jenda Krynicky ([EMAIL PROTECTED]) write: Mike Arms writes: Normally we just want to to just start our browsing for a directory from a given start point (e.g. last save dir, current dir, some arbitrary app dir, etc.) but let the user fully navigate

RE: Daemon example

2003-01-29 Thread Jenda Krynicky
From: FARRINGTON, RYAN [EMAIL PROTECTED] win32::daemon::simple required you to be able to use win32::daemon as well... daemon has to be installed as a package =( Oh well ... I did NOT ask you to install Win32::Daemon::Simple ! What do you get if you run ppm install

RE: Daemon example

2003-01-29 Thread Jenda Krynicky
From: FARRINGTON, RYAN [EMAIL PROTECTED] ARG!!! WTF... why does that work and installing it from www.roth.net doesn't =( Because Dave did not compile the module for Perl 5.8 yet. I compiled the module myself. I did send him the DLL and the files I changed so I think he will add the 5.8

Re: Strange Problem with module

2003-01-24 Thread Jenda Krynicky
From: [EMAIL PROTECTED] I have a problem giving a Parameter to a module. The Module is invoked like this: use Win32::Daemon::Simple Service = 'Logrotate', Name = 'Logrotate', Version='0.1', Info = { display = 'Logrotate', description =

Re: How To Create a MS Word Document

2003-01-24 Thread Jenda Krynicky
From: michael higgins [EMAIL PROTECTED] I want to create an MS Word document from a perl program. Would I use Win32::OLE or another module? Can you point me to any documentation / sample code / etc.? Wes Not sure this is useable at this time, but there is also

RE: @ARGV with service

2003-01-20 Thread Jenda Krynicky
From: [EMAIL PROTECTED] $now=localtime; print DEBUG $now\n; btw: When I use the upper lines, I get Mon Jan 20 15:49:26 2003 as $now. If I do print DEBUG localtime; i get some big number. What is that number? Unix-ticks or what it's called? The difference is the scalar

Re: Insert a plain line break?

2003-01-15 Thread Jenda Krynicky
From: Roland Butler [EMAIL PROTECTED] If I print to a file the following: this line of text\n Word understands the \n to be a paragraph mark, how do I insert a plain line break? I don't think you can. Unless you start creating RTF files instead of plain text ones. Jenda = [EMAIL

Re: Variables

2003-01-08 Thread Jenda Krynicky
From: Sabherwal, Balvinder \(MBS\) [EMAIL PROTECTED] I wanted to know if it is ok to do something like $var = substring($var,10,20); in the perl script. I am trying to save the use of another variable in my script. Yes this is all right. Jenda = [EMAIL PROTECTED] ===

Re: NEWBIE: String searching

2003-01-07 Thread Jenda Krynicky
From: James Smith [EMAIL PROTECTED] Quick question? How can I search for one string within another? I have toyed with grep(right=, $line) but with no success. Run perldoc -f index and read the docs. Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to

Re: dde and perl 5.8

2003-01-03 Thread Jenda Krynicky
From: Randy W. Sims [EMAIL PROTECTED] I've never used this module before, but I searched and found a 0.02 version of the sources http://mirrors.develooper.com/perl/backpan/authors/id/D/DE/DEWEG/ and compiled it for ActivePerl 5.8. No modifications neccessary. All tests

RE: regex question

2002-12-09 Thread Jenda Krynicky
From: Dmitry Kostyuk [EMAIL PROTECTED] Date sent: Mon, 09 Dec 2002 02:24:45 +0100 --- #!/usr/bin/perl #bodytag_v2.3.pl #regex that matches the body tag ... html head body

RE: regex question

2002-12-05 Thread Jenda Krynicky
From: Dmitry Kostyuk [EMAIL PROTECTED] Anyway, here goes the new version: --- #!/usr/bin/perl #bodytag_v2.2.pl #regex that matches the body tag ... A few breakages ... body onLoad=foo='bar body onLoad= code = 'if (x d) {alert( 'Don\'t do that')

Re: Win32::LookupAccountSid (Can't locate auto/Win32/LookupAccou.al i n @INC)

2002-12-02 Thread Jenda Krynicky
From: Burchell, James [EMAIL PROTECTED] Subject:Win32::LookupAccountSid (Can't locate auto/Win32/LookupAccou.al i n @INC) It should be Win32::LookupAccountSID HTH, Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine,

Re: WSH vs plain perl

2002-11-24 Thread Jenda Krynicky
From: Galdamez, Thomas [EMAIL PROTECTED] Hi, fellow scripters. For many tasks with ActivePerl, one has the option to choose a framework to work on. I was wondering if anyone had any recommendations (or warnings!) to share for using ActivePerl throught the Windows Scripting Host, against

Re: charset problems with ActivePerl

2002-11-24 Thread Jenda Krynicky
From: David Ponevac [EMAIL PROTECTED] I am running Apache/2.0.36 (Win32) with ActivePerl 5.6.1 build 633. My problem is that when I sent something to my CGI script with special characters(example: test.cgi?var=vra ) the server dies with this message Server error! Error message: couldn't

Re: accessing local files from cgi

2002-11-05 Thread Jenda Krynicky
From: [EMAIL PROTECTED] I have a question regarding a cgi I'm about to write. The cgi shall take some user entries from a form and write them into a text file on a mapped network drive. Is there any possible way to do that? I would think that if I do a open OUTFILE,

RE: Loading Com DLL

2002-10-23 Thread Jenda Krynicky
use OLE; my $comObject=CreateObject OLE NameOfMy.ComObject; Please don't. The OLE.pm module is there just for backward compatibility. From OLE.pm: # Compatibility layer for applications using the old toplevel OLE.pm. # New code should use Win32::OLE use Win32::OLE; instead. Jenda

Re: difficulties mailing on win32 - none on Unix

2002-10-22 Thread Jenda Krynicky
From: [EMAIL PROTECTED] I am new to this list, (and a bit of a newbie with perl), so apologies if this has been covered before - I have searched the faqs but can only find standard examples. Anyhow, I have some scripts which use Net::SMTP to mail data, and these have been

RE: difficulties mailing on win32 - none on Unix

2002-10-22 Thread Jenda Krynicky
;listserv.ActiveState.com]On Behalf Of Jenda Krynicky Sent: Tuesday, October 22, 2002 7:04 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: difficulties mailing on win32 - none on Unix From:[EMAIL PROTECTED] I am new to this list, (and a bit of a newbie with perl), so apologies

RE: difficulties mailing on win32 - none on Unix

2002-10-22 Thread Jenda Krynicky
From: Ronan Oger [EMAIL PROTECTED] You wrote: 1. Please do not top-post. 2. Please read the message you reply to! I did not ask, I was replying to M.Hall. HE was having problems. And he tried Net::SMTP and Mail::Sender modules that are NOT dependent on sendmail executable being

Re: Is there a perl Guru that can help me ?

2002-10-09 Thread Jenda Krynicky
From: Tonuzi Selim [EMAIL PROTECTED] I am sorry but I am not a programmer and I have no knowledge in C. Being a programmer and knowing C are two completely unrelated things. I'm even inclined to say that not knowing C makes you a better programmer. I am parsing a text file that contains

Re: Is there a perl Guru that can help me ?

2002-10-09 Thread Jenda Krynicky
From: Tonuzi Selim [EMAIL PROTECTED] That is what I expect. I have done some benchmarking on smaller files but I did not see any time difference between the 2 coding styles. I am just wondering if these 2 codes are interpreted in the same way by perl when it uilts its

RE: win32:: ole excel

2002-10-01 Thread Jenda Krynicky
From: Toby Stuart [EMAIL PROTECTED] i'll bet it's because you are passing the literal string xlUnderlineStyleSingle instead of its underlying value ie. 2 try $Sheet-Range(a10)-Font-{Underline} = 2; hth toby And if you want to be able to use the constants you have to load them :

Re: Console-less Tk?

2002-09-30 Thread Jenda Krynicky
I know this is probably a FAQ, but I couldn't find an answer to this on the regular Perl newsgroups, so I thought I'd ask. My question is: Is there a way to create a Perl/Tk program using ActivePerl on Windows 2000 that does not have a console window? Run it by wperl.exe instead of

Re: Perl script as a service

2002-09-19 Thread Jenda Krynicky
I am on NT 4.0 with ActivePerl 5.6 Build 633. Is it possible to write a service (Aka Daemon in unix) for NT M/C using perl? If so, are there any modules which I can use? This script should be continously running waiting for some commands. Once it gets the specified command, it should

Re: nmake // and another thing

2002-07-25 Thread Jenda Krynicky
From: Kristofer Wolff [EMAIL PROTECTED] Last night i play around with the Inline-tool and search ppm for inline::java .- no result. So i went to cpan and download it. Now, since a few weeks i changed my personal pc up to win2000 and my office to WinXP. I know there is

Re: @- / @+ versus $1 .. $9 ..

2002-07-18 Thread Jenda Krynicky
From: [EMAIL PROTECTED] Ok, so to clarify then the use of the grouping operator /(.)/ imposes the penalty, not the $1 reference to the grouped data? Exactly. use Benchmark; $string = 'sdfg q3wgrasdga wiufeg

RE: regex help?

2002-07-12 Thread Jenda Krynicky
From: Joel Hughes [EMAIL PROTECTED] Hi Jenda, I like your elegant solution. Could you talk thru your regex a bit more please? I like the mapping thing but dont see how the regex knows how to apply it? Is it something to do with the qr/? joel OK I'll go over the code again I'd do it

Re: regex help?

2002-06-25 Thread Jenda Krynicky
From: [EMAIL PROTECTED] Jenda Krynicky writes: I'd do it like this : # set up the mapping %replace = ( Boulevard = 'Blvd', Street = 'St', Drive = 'Dr', Avenue = 'Ave', Circle = 'Cir', ); # prepare the regular expression $regexp = join

Re: Fake Databases?

2002-06-20 Thread Jenda Krynicky
From: Gerry Hickman [EMAIL PROTECTED] You might like DBD::SQLite Thanks, is it built in to standard Perl 5 - I don't have any control over the server. I'll assume a questionmark after the Perl 5 ;-) No. It's not part of the core instalation. It might be part of DBI bundle instalation now

Re: Perl drawbacks

2002-06-18 Thread Jenda Krynicky
From: Robert Thorpe [EMAIL PROTECTED] On 17 Jun 2002, at 22:10, Jenda Krynicky wrote: Defining interfaces - Not really much of a problem in my view. Again the document compares perl to CL which is certainly better in this regard, but this says more about how good CL

Re: CARP

2002-06-18 Thread Jenda Krynicky
From: Vitaly Sinitsin [EMAIL PROTECTED] why almost all Perl packages have: use Carp; ??? Read help, but still not convinced... Suppose you pass incorrect parameters to a function from a module. What use will it be to you if you get an error on line XX inside the module? You need to get the

Re: Digest Mode Question

2002-04-24 Thread Jenda Krynicky
From: Ken Fair [EMAIL PROTECTED] I was wondering how I send a reply to the list if I get messages in Digest mode? I get the messages OK now if I know the answer ( very seldom) I only have the choice of sending to the particular user not the list. Well ... so the address of

Re: Re[2]: Overriding CORE:: functions?

2002-04-06 Thread Jenda Krynicky
From: Uwe Mayer [EMAIL PROTECTED] Hallo Jenda, From: [EMAIL PROTECTED] I'd like to override standard functions like 'print' but I can't figure out how to do that. Ideas? I've included a sample of how I *expected* the code to work where a print in main would really be

Re: Require an .exe file

2002-03-25 Thread Jenda Krynicky
From: Fred [EMAIL PROTECTED] I have broken an application into several pieces to make it more manageable. I use require whatever.pl to load the next piece. It works fine. Now I want to compile the application and distribute. How can I achieve the same functionality as the require eg

Re: How to obtain the script's path?

2002-03-25 Thread Jenda Krynicky
From: francis Alix [EMAIL PROTECTED] #!C:\BIN\DEV\Perl\bin\perl.exe -w my $chem=$0; $chem=~s/[^\\]*$//; print path:$chem\n; N. $0 is NOT guaranteed to contain the full path. use FindBin qw($Bin); is the safe way. Jenda === [EMAIL PROTECTED] ==

Re: Forms

2002-03-25 Thread Jenda Krynicky
It's me again =D Can I use an Image hyperlinked to my .pl program instead of using the form's submit button? How can I do this? Rafferty Either a href=...img src=../a - most probably you'll want to add border=0 to the IMG. Or input type=image src=... this one

Re: Net::SMTP and forms with image links

2002-03-25 Thread Jenda Krynicky
From: Rafferty Uy [EMAIL PROTECTED] I'm using the Net::SMTP module to send mails.. but It won't work since I'm not receiving any e-mail from my site. The smtp server that I'm using is ccs1.dlsu.edu.ph is there anything wrong with my code? use Net::SMTP; my($smtp); my $from =

Re: Perl to DLL

2002-03-25 Thread Jenda Krynicky
From: [EMAIL PROTECTED] Hello. I have IIS 5.0, Active Perl, Windows 2000. This past year, I picked up perl (I'm a VB programmer) and have been using it solely for cgi scripts. I've been useing notepad to program, and no debugger software. I don't have any additional modules installed

Re: Another PPM question

2002-03-13 Thread Jenda Krynicky
From: David Hares [EMAIL PROTECTED] When ppm is used to install a module from the Activestate library, the .pod file for the module is installed, but cannot be accessed through the HTML help system. Modules installed with perl can be. Is there a way to force new modules inclusion? The

Re: Search and replace one-liners in ActivePerl broken?

2002-03-13 Thread Jenda Krynicky
From: Steve Harper [EMAIL PROTECTED] Can someone please tell me why the following doesn't work? Observe: D:\perl -pi.bak -e 's/this/that/g' testtextfile.txt I'm fairly perplexed by this difference in behaviour, I've read a fair amount in the documentation to try to

Re: A problem with perldoc

2002-03-05 Thread Jenda Krynicky
From: Marc S Weintraub [EMAIL PROTECTED] I use a PC with Win98 SE and ActivePerl 5.6.1 Build 630 for my Perl development work. Whenever I try to run a perldoc query I see a slight pause followed by Bad command or file name. What have I failed to install or configure? How do

Re: enumerating shares

2002-02-28 Thread Jenda Krynicky
From: Eric Logeson [EMAIL PROTECTED] Is there a way to enumerate all shares on a windows 2000/NT machine much like the command net share? I looked at Win32::AdminMisc but didn't see anything about enumerating shares. I'm sure Win32::Lanman will have such a function.

Re: Command Line Argument Problem

2002-02-27 Thread Jenda Krynicky
From: Mark Graves [EMAIL PROTECTED] I'm having problems with a very simple perl script that works fine on PERL5, but doesn't work with ActivePerl - - it's got something to do with ARGV and the '=' symbol. On my website, when people link to an outside souce I use a perl

I shell never do it again (was RE: LWP::Simple - giving me an error while running)

2002-02-22 Thread Jenda Krynicky
From: Hemphill, Barry [EMAIL PROTECTED] -Original Message- From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 4:37 PM To: [EMAIL PROTECTED] Subject: Re: LWP::Simple - giving me an error while running Try to change the sue

Re: Terminal Server Settings

2002-02-21 Thread Jenda Krynicky
From: Louie Iturzaeta [EMAIL PROTECTED] I just got tasked with writing a Perl script that would change the Terminal Server Profile Path and the Terminal Server Home Directory for all of our Terminal Server Users. Is there a module or way to change these settings in perl?

Re: perl -P in activestate

2002-02-19 Thread Jenda Krynicky
From: edelweiss [EMAIL PROTECTED] And of course that means there is no real need for the cpp perl filter. IMHO, a preprocessor written into the core of Perl, like regexes and associative arrays already are, is the one thing that Perl is missing. It's messy enough already.

Re: eqvt. to MACROS

2002-02-08 Thread Jenda Krynicky
From: Abhimanyu_Bhola [EMAIL PROTECTED] Is there somehing in PERL eqvt. to MACRO in C ??? -Abhi Not really. You can define named constants (that will be replaced by the values when compiling the script) with either use constant FOO = 5; or sub FOO () {5};

Re: how to put a control in an email to invoke a script

2002-02-08 Thread Jenda Krynicky
From: srikanth kasha [EMAIL PROTECTED] I am sending an email with an attached file (XML file) to a user who has to examine the contents of the file. After examining the file he/she has to run a script which resides in the same computer where the email will be opened. This

Re: Deleting a service with perl.

2002-02-06 Thread Jenda Krynicky
From: Fifield, Mike [EMAIL PROTECTED] Does anyone know of a perl mod that allows you to delete a winnt service? The only thing close that I could find was win32::service but this only allows you to stop start and get status. Win32::Daemon Jenda === [EMAIL

Re: passing an array as an argument to a subroutine

2002-02-06 Thread Jenda Krynicky
From: Charles Knell [EMAIL PROTECTED] I need to pass an array as one of three arguments to a subroutine. Once inside the subroutine, the array contains only the first item (index 0) instead of the whole array. It is the third argument, so I have attempted to retrieve the

Re: e-mails

2002-01-31 Thread Jenda Krynicky
From: Hudson Clark [EMAIL PROTECTED] So am I to understand that going downward from the top of the e-mail (lets say its in a @list) that the first line that is full of white space will be seperating the header from the message? No. The first line thats EMPTY separates the

  1   2   >