Re: Overloading a Perl Operator

2011-10-05 Thread Jenda Krynicky
e other comparison operators are autogenerated if the <=> is defined. See perldoc overload section "MAGIC AUTOGENERATION". Jenda = je...@krynicky.cz === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed to get drunk and croon as much

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

2011-07-20 Thread Jenda Krynicky
eters then in general case you are extremely unlikely to have problems if you remove the later invocation. In case of Win32::Process I did not test it thoroughly, but looking at the code I do not see any danger in removing it. Jenda = je...@krynicky.cz === http:/

Re: Best way to compare to files in Perl

2010-09-24 Thread Jenda Krynicky
at moment is to compare the new file with a single old one. I would not call that a huge deal. Comparing with all of them would be too expensive, comparing with one is not. OK, in the extremely unlikely case that he gets a positive match on files whose contents are not equal, he&#

Re: Hash performance v. hash size setting

2010-09-03 Thread Jenda Krynicky
perl keys %hh = 64; for (aa..zz) {$c++; $h{$_}=1; $hh{$_}=1; print "$c : ".%h." - ".%hh."\n";exit if $cnt > 64}; __END__ As you can see the number of used buckets is the same for both hashes as soon as the number of keys is big enough to force perl to allocate the

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
print STDERR "sqllist = $sqllist1\n"; > $fish1 = $dbhstr->prepare($sqllist1); > $fish1->execute(); > print STDERR "sqllist = $sqllist2\n"; > $fish2 = $dbhstr->prepare($sqllist2); > $fish2->execute(); > my $fish =

FYI: IIS, Windblows Jehovista SP1 and partial response

2009-08-29 Thread Jenda Krynicky
been broken by some hotfix or "security" patch for Windblows. Jenda = je...@krynicky.cz === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett i

Re: Problem with Win32::FileOp->Disconnect

2009-06-18 Thread Jenda Krynicky
t $lettermatch, {persistent=>1,force=>1} or &ConnError; > } Try to disconnect the drive letter, not the share. I think if you specify the share, it breaks the connection (the server will no longer see this computer among the connected ones, no files will be open etc.), but doesn't

Re: ODBC DB connect fails after switching to Oracle

2009-03-24 Thread Jenda Krynicky
up window. > > Just using it from my script won't work... Is the script running under the same account under which you tested the ODBC connection? It might be a permissions issue or the DSN was by accident created as a "User DSN", not "System DSN". Jenda =

Re: Perl for ISAPI and CRLF

2009-02-04 Thread Jenda Krynicky
From: Bill Luebkert > 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 STDO

Perl for ISAPI and CRLF

2009-02-03 Thread Jenda Krynicky
print "EXE returned no newlines!!!\n" } if ($dll_content =~ /\x0D\x0A/) { print "DLL returned CRLF\n"; } elsif ($dll_content =~ /\x0A/) { print "DLL returned LF\n"; } elsif ($dll_content =~ /\x0D/) { print "DLL returned CR\n"; } else {

Re: sendmail attachment

2009-01-02 Thread Jenda Krynicky
else found a solution with this hosting > service. If you can upload your code, you can upload MIME::Lite or Mail::Sender. Not sure about MIME::Lite, but Mail::Sender is plain Perl and a single file and the only noncore dependencies are MIME::Base64 and MIME::QuotedPrint. Jenda = j

Re: Perl "Out of Memory!" Issue

2008-12-15 Thread Jenda Krynicky
give you the data of that tag+content one at a time like XML::Twig. Or a module that lets you filter the tags as they are encontered, transform the data structure as it's built and process the datastructure at whatever level(s) that's convenient like XML::Rules. HTH, Jenda = je..

Re: Initializing list of variables

2008-12-11 Thread Jenda Krynicky
s nice. Or a hash. But most likely you'll find yourself wanting to do more things to all those variables later. Which is trivial if it's a single variable containing several values, but tedious if its several variables. Jenda = je...@krynicky.cz === http://Jenda.Kryni

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

2008-12-08 Thread Jenda Krynicky
me back a matching on a perl 5.8.8 system? Most probably because it handles the @domain differently. Escape the @. The \Q\E only affects the characters special to regexps, not the $ and @ that denotes a variable to be interpolated into the string. Jenda = [EMAIL PROTECTED] === http://Jenda.

Re: How to get yesterday's date in Perl

2008-12-03 Thread Jenda Krynicky
ot use the hour and minute you do not mind summer/winter-time. If you need something more complex have a look at the DateTime module (http://search.cpan.org/search?query=DateTime&mode=all) Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and

Re: Working with XML in Perl

2008-11-11 Thread Jenda Krynicky
m all, I'll write the updated XML document back to disk. Why do you want to load it all into memory and validate before you start to update it? You can process the file as you parse the tags and create the updated file as you go. And if you find out it was not well-formed you can delete the

Re: problem parsing with XML::DOM

2008-07-10 Thread Jenda Krynicky
les way where for each tag you specify what data are you interested in or the code you want to execute for the tag, its attributes, content and the data extracted from the subtags. Eg in this case you might do something like # http://search.cpan.org/~jenda/XML-Rules-1.03/lib/XML/Rules.pm my $par

Re: Communication between Perl and VB script

2008-06-25 Thread Jenda Krynicky
or somesuch object, but I do not remember any details. It's also quite often better to wrap the functionality in a DLL using ActiveState's Perl Development Kit's PerlCtrl. VB is generaly more happy working with COM/OLE objects than with external applications. Jenda

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

2008-06-16 Thread Jenda Krynicky
->get('/tmp/InstalledDB', 'c:/s2/InstalledDB'); > print "get status is $stat\n"; > > > ...I get the error: > > The getpwuid function is unimplemented at > C:/Perl/site/lib/Net/SSH/Perl.pm line 110. Net::SSH2 works fine for me under Windows. Jend

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

2008-06-13 Thread Jenda Krynicky
y benchmarks, but it seems to work fine. Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery __

Re: Why does this work?

2008-05-20 Thread Jenda Krynicky
7; $x++; There are few cases when this is actually fine to use, one of them is ($newvar = $oldvar) =~ s/some/transformation/; in this case again, you assign the value of $oldvar to $newvar and then apply the s/// to the $newvar. Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.c

Re: PerlScript - FileSystemObject - Windows Scrpting Host

2008-04-02 Thread Jenda Krynicky
uot;; just like in normal Perl. And most likely the problem is permissions. The account undex which the ASP page runs doesn't have enough permissions to create the file in the current directory. Jenda = [EMAIL PROTECTED] === htt

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

2003-10-17 Thread Jenda Krynicky
've got the same problem saying: > > Can't locate DBI.pm in @INC. > > What's the problem ? DBI is NOT part of the default instalation. But it can easily be installed. Start the Command Prompt and run c:\> ppm ppm> search ^DBI$

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]

RE: Another Dos question!

2003-09-12 Thread Jenda Krynicky
start" executable. I really think use Win32::FileOp qw(ShellExecute); ShellExecute $filename; would be easiest and safest. Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed t

Re: Another Dos question!

2003-09-11 Thread Jenda Krynicky
"command"...) means. Anyway try: system( 1, $filename_winword,"/n", "docs/$result->{DOCUMENT_NAME}"); Or you may try to install the latest Win32::FileOp and use ShellExecute("docs/$result->{DOCUMENT_NAME}"); Jenda = [EMAIL PROTECTED] ===

Re: Perlcc help

2003-08-29 Thread Jenda Krynicky
ActivePerl) you'd have to make quite a few changes to c:\perl\lib\Config.pm IMHO you'd better have a look at PAR (on CPAN), PerlApp (on Activestate.com) or Perl2Exe (on perl2exe.com). Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and s

Re: variable in memorie

2003-08-28 Thread Jenda Krynicky
to write it somewhere (to a file or database) and then read it back :-) You may want to look at the DMB modules: DB_File, SDBM_File, GDBM_File ... Those give you persistant hashes, maybe that's what you need. Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to

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

2003-07-11 Thread Jenda Krynicky
$cc_ppid"); >exit (0); Maybe the file is locked. Or the path is wrong. Also the quotes are not needed there. You should print the error message, maybe that will tell you what's wrong: unlink( $cc_ppid) or die "Cannot delete '$cc_pid': $^E"; Jenda

Re: User contributions

2003-07-07 Thread Jenda Krynicky
normally happen? > > Yes, thats where all the stuff in CPAN comes from. Read perlmodlib, > and for building ppm installable modules, there's some documentation > on Jenda's pages (jenda.crynicky.cz). http://jenda.Krynicky.cz There's K, not C :-) Jenda = [EMAIL PR

Re: uninitialized value problem in migrated app

2003-06-26 Thread Jenda Krynicky
bsolutely the wrong thing to do - FIX THE ERRORS IN YOUR CODE! While generaly I do agree in this case I'd simply add no warnings 'uninitialized'; to silence this particular warning. I think the "fixes" to silence this warning make unreadable code. if (defi

Re: BusinessObjects with perl

2003-06-26 Thread Jenda Krynicky
ode related to the topic is welcome. > > Thanks, > Patrick I don't think I understand what you are after. You mean something with BusinessObjects from http://www.businessobjects.com/ ? Give us more info. Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =

Re: slurping in win xp vs hpux

2003-06-09 Thread Jenda Krynicky
20 of the 500 sec run > time. > > So, my UX processor is slower but maybe has a better disk. > > And/Or: Is there some win32 setting that could be slowing the XP > slurp? Maybe the files are heavily fragmented. Try to defrag your disk. Jenda = [EMAIL PROTECTED] === http://J

Re: perl newbie question

2003-06-08 Thread Jenda Krynicky
the created object with the agruments. > $self->lookup () if $self->{ Domain }; If the personality() method set the Domain property of the object call the lookup() method. > return $self; return the created and initialized object. Jenda = [EMAIL PROTECTED] ===

Re: getting values of lexical variables in subs

2003-06-05 Thread Jenda Krynicky
f you ever do it. (Except of course for closures. The warning would only warn about named subs. Now it obnly warns if you accidentaly create a closure.) :-) Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed to get drunk a

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 tota

Re: perlis spiking cpu in iis

2003-05-30 Thread Jenda Krynicky
From: john cesta <[EMAIL PROTECTED]> > On Thu, 29 May 2003 23:51:15 +0200, Jenda Krynicky wrote: > >From: john cesta <[EMAIL PROTECTED]> > >>On Thu, > >>I have been working with Microsoft and they have discovered a > >>thread > >>tha

Re: perlis spiking cpu in iis

2003-05-30 Thread Jenda Krynicky
p://www.jawa.cz/) and Pearl. > Includes 10 Domains - 100% Browser Based Administration This eludes me. Why would anyone advertise a drawback? Uploading files using any web based admin is pain in the a.. Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, wom

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

Re: Installing TermReadKey - help please

2003-03-27 Thread Jenda Krynicky
ar no luck. Does anyone know whether the CPAN > version can be installed without a compiler and how it might be done? You may get it from http://Jenda.Krynicky.cz/perl now. ppm install http://Jenda.Krynicky.cz/perl/TermReadKey.ppd HTH, Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===

Re: Modules for Perl 5.8 (8xx builds)

2003-03-18 Thread Jenda Krynicky
s here) which may be found in the archives at http://aspn.activestate.com/ASPN/Mail/ and there is now a new mailinglist specifically for PPM related issues at http://aspn.activestate.com/ASPN/Mail/Browse/Threaded/ppm As Jan Dubois said the automated build process needs some work. But he's working on that

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

2003-03-12 Thread Jenda Krynicky
Feb 2003 13:30:23 -0500 What's this? Why did I get a more than month old message? I believe I've already responded to this one and the issue is solved. If not please let me know. Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wi

RE: Pointers to "some" memory

2003-03-03 Thread Jenda Krynicky
;> Does anybody know how to reference memory that is NOT declared or > >> allocated by Perl? > > >perldoc -f unpack > > > >I believe Win32::Lanman will do all you need from netapi32. > >(May be installed by ppm from http://Jenda.Krynicky.cz/perl) > > >

Re: variables?

2003-02-24 Thread Jenda Krynicky
@words = split /\s+/, $str; } Or even like this: my @words = do { my $str = $line; $str =~ s/^\s+//; $str =~ s/\s+$//; split /\s+/, $str; }; Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ==

Re: Mail::sender and txt attachments.

2003-02-20 Thread Jenda Krynicky
change the file extension to something else it works fine Could you send me an example .txt that does this? Also .. what version of Mail::Sender do you have? How much of the txt file gets truncated? Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and

Re: template::rtf

2003-02-06 Thread Jenda Krynicky
Template::RTF::cmdbrace) { qq{print "$Template::RTF::cmdbrace"; #cmdbrace\n} } else { '' } }; in Template::RTF::Func.pm will become use Interpolation::Scalar 'Cmdbrace:->$' => s

Re: passing variables to modules

2003-02-05 Thread Jenda Krynicky
you want. Could you give us an example of what you though may work and what you wanted that to mean? :-) Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like.

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

Re: Pipes and threads?

2003-02-03 Thread Jenda Krynicky
have to use Win32::Semaphore or something similar to make sure your threads do not block. Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Prat

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 li

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

2003-02-03 Thread Jenda Krynicky
And last thing ... you did not pay for CPAN, you did not pay for ActivePerl, you did not pay for PPM repositories so you should be gratefull for what you've got and stop complaining. If something doesn't work FIX IT! Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When i

Re: Win32::FileOp BrowseForFolder

2003-02-03 Thread Jenda Krynicky
ight it is possible to set the root to a custom folder, but it's too hard. The API is quite convoluted. If anyone has the time and tuits to implement this I'll be happy to incorporate the changes to Win32::FileOp. Sorry, Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =

RE: Daemon example

2003-01-29 Thread Jenda Krynicky
ribution. Please run ppm remove Win32-Daemon ppm install http://Jenda.Krynicky.cz/perl/Win32-Daemon.ppd and try again. Everybody who installed the Perl5.8 version of Win32::Daemon from my repository please do reinstall the module. Sorry. Jenda = [EMAIL PROTECTED] === http:

RE: Daemon example

2003-01-29 Thread Jenda Krynicky
I think he will add the 5.8 version to his repository soon as well. Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. --

RE: Daemon example

2003-01-29 Thread Jenda Krynicky
f you run ppm install http://Jenda.Krynicky.cz/perl/Win32-Daemon.ppd ? Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry

Re: Strange Problem with module

2003-01-24 Thread Jenda Krynicky
of as variables and I want them to be known as constants when the rest of your script gets compiled. This is especialy good for things like print "Some debugging data\n" if CMDLINE; If the CMDLINE constant has a false value the whole statement will be optimized away during compil

Re: How To Create a MS Word Document

2003-01-24 Thread Jenda Krynicky
Not sure this is useable at this time, but there is also http://Jenda.Krynicky.cz/#Template::RTF It would alow you to create a template in Word and then fill in the data. It does support loops and conditions! Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wi

RE: @ARGV with service

2003-01-20 Thread Jenda Krynicky
? Unix-ticks or what it's > called? The difference is the scalar context, no? You actually do not get one huge number, but several small ones concatenated together. Try: print DEBUG join(', ', localtime); And see the localtime docs. :-) Jenda = [EMAIL PROTECTED] =

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 crea

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

Re: Win32::OLE and threads

2003-01-07 Thread Jenda Krynicky
From: "Dave Crawford" <[EMAIL PROTECTED]> > Jenda, Sorry about the confusing question, I was confused myself and > thought you were an AS employee. No I'm not :-) And I don't know when will Jan be in the office. Jenda = [EMAIL PROTECT

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 PROTEC

Re: dde and perl 5.8

2003-01-03 Thread Jenda Krynicky
a working version to my PPM repository at http://Jenda.Krynicky.cz/perl Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery __

RE: regex question

2002-12-09 Thread Jenda Krynicky
ahoj ===> Jenda P.S.: You still did not fix the bug I had in mind. Look closely at this line: if ( $bodytag =~ /<\s*(BODY)(.*)(=\s*["][^"]*)>$/igs ) { The (.*) will match even things it should not. I think you s

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 ... Hint: It's t

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 =

Re: charset problems with ActivePerl

2002-11-24 Thread Jenda Krynicky
; charset I need to use is windows-1250 or ISO-8859-2 > > How can I fix this problem? Please help. use CGI::Enurl; # http://Jenda.Krynicky.cz or CPAN ... $URL = 'test.cgi?'.enurl({ var => 'vĂ­ra'}); ... Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = Wh

Re: WSH vs plain perl

2002-11-24 Thread Jenda Krynicky
l throught the Windows Scripting Host, > against using just plain perl with the Win32 extensions... I do not see any reason to use WSH with Perl. You get all the functionality that WSH could provide from Perl modules. IMHO WSH is great if all you know is VBScript of JavaScript, but

Re: accessing local files from cgi

2002-11-05 Thread Jenda Krynicky
her case writing the data to a remote location is going to create more problems than it's worth. You'd better write it somewhere localy and then copy them somewhere with a background process (service). Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to

RE: Loading Com DLL

2002-10-23 Thread Jenda Krynicky
use Win32::OLE; instead. Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery ___ ActivePerl ma

RE: difficulties mailing on win32 - none on Unix

2002-10-22 Thread Jenda Krynicky
e in > >English, but in Czech using the last name only without anything else > >sounds a bit rude. Call me Jenda, please. > > > >Jenda > > > > Oops. I apologize for offending you, Jenda. No problem :-) > Oddly enough, in Switzerland where I live, calling som

RE: difficulties mailing on win32 - none on Unix

2002-10-22 Thread Jenda Krynicky
he needs an SMTP server. But it doesn't have to be on the same computer as the script. 3. Krynicky is my last name. I don't know if it's the same in English, but in Czech using the last name only without anything else sounds a bit rude. Call me Jenda, please. Jenda > >

Re: difficulties mailing on win32 - none on Unix

2002-10-22 Thread Jenda Krynicky
:Sender and get the same problems - > > In all the scripts, using the new constructor fails (returns -1). -1 means "The SMTP server ... was not found" in Mail::Sender. Are you sure you have the address right? Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it c

Re: Audit Policy

2002-10-09 Thread Jenda Krynicky
From: "Mark Veinot" <[EMAIL PROTECTED]> > Is there a way to see the audit policy on a file or folder? use Win32::Perms; Jenda=== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == When it comes to wine, women and song, wizards are allowed to

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

2002-10-09 Thread Jenda Krynicky
;} = [$1]; $SIGNALS{$SIGNALNAME}{'isOUTPUTof'} = [$2]; -e syntax OK So no, there is a difference. Jenda=== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. --

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

2002-10-09 Thread Jenda Krynicky
@ 33.29/s (n=100) Short: 2 wallclock secs ( 2.64 usr + 0.00 sys = 2.64 CPU) @ 37.82/s (n=100) As you can see there is a difference, but keep in mind that this benchmark doesn't do anything else that it accesses those hashes! So maybe you could make the keys sho

RE: win32:: ole excel

2002-10-01 Thread Jenda Krynicky
t; hth > > toby And if you want to be able to use the constants you have to load them : use Win32::OLE::Const ('Microsoft Excel 8.0 Object Library'); ... $Sheet->Range("a10")->Font->{Underline} = xlUnderlineStyleSingle; Notice that there are NO quotes around the

Re: Console-less Tk?

2002-09-30 Thread Jenda Krynicky
t by wperl.exe instead of perl.exe Jenda === [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain I can't find it.

Re: Perl script as a "service"

2002-09-19 Thread Jenda Krynicky
he most important trick was to load modules I only need in either worker or normal threads AFTER the fork()ing. For the "service" related stuff I used Win32::Daemon. Jenda === [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == There is a reason for living. There must be.

Re: nmake // and another thing

2002-07-25 Thread Jenda Krynicky
ch for make=, and change it from make=nmake to make=dmake Then run the perl Makefile.PL again and a dmake compatible makefile will be created. There's another problem. If the module contains any XS code, you will need a compiler, not only a make. HTH, Jenda === [E

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

2002-07-18 Thread Jenda Krynicky
21 usr + 0.00 sys = 7.21 CPU) @ 138696.26/s (n=100) without: 5 wallclock secs ( 4.26 usr + 0.00 sys = 4.26 CPU) @ 234962.41/s (n=100) Jenda === [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == There is a reason for living. There must be. I've s

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/? > &

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

Re: Fake Databases?

2002-06-20 Thread Jenda Krynicky
if it's a windows machine they can install it via PPM from my repository at http://Jenda.Krynicky.cz/perl/. Apropos, the DB_File should be installed with perl, I believe. Jenda === [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == There is a reason for living. There must be. I've

Re: CARP

2002-06-18 Thread Jenda Krynicky
need to get the line where You made the mistake, the line where you called that function incorrectly. Jenda === [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table

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 thi

Re: PSH ppm install

2002-05-30 Thread Jenda Krynicky
lems at unexpected times. Jenda === [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain I can't find it.

Re: Digest Mode Question

2002-04-24 Thread Jenda Krynicky
f the individual message you want to reply to. Jenda === [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain I can't find it.

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

Re: Perl to DLL

2002-03-25 Thread Jenda Krynicky
lt;%@ Language=PerlScript %> <% ... any Perl code %> all you need for this is a reasonably old ActivePerl (one year old is new enough). You might want to install and use Win32::ASP or ASP.pm to simplify some ASP specific issues. Jenda === [EMAIL PROT

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 $

Re: modules

2002-03-25 Thread Jenda Krynicky
int and compare %ENV, look at the current directory, compare permissions, ... In this case I bet it's the current directory. That is ... it's not what you expect it to be. Jenda === [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == There is a reason for living. There must be.

Re: Forms

2002-03-25 Thread Jenda Krynicky
ou also the coordinates of the click. Jenda P.S.: But this has nothing to do with Perl ! === [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my t

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

Re: "Require" an .exe file

2002-03-25 Thread Jenda Krynicky
lude 2.nd solution You compile into an .exe only the main script, copy the other parts alongside the .exe and require them. Jenda === [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == There is a reason for living. There must be. I've seen it somewhere. It's just that in th

Re: how to make PPM search multiple repositories?

2002-03-20 Thread Jenda Krynicky
ood way to solve this? c:\> PPM PPM> set repository Maedas http://our.company.jp/Maeda/ppms PPM> set save and from now on your repository will be searched as well. Jenda === [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == There is a reason for living. There must be. I'

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

2002-03-13 Thread Jenda Krynicky
d for complete cygwin. > but it seems like the perl runtime is > getting everything it needs here and is still not making the changes > to the file. I think Perl doesn't execute s/this/that/g but 's/this/that/g' which is a little different thing, isn'

Re: Another PPM question

2002-03-13 Thread Jenda Krynicky
force new modules inclusion? The HTML docs should be installed and added to the index as well, but the .tar.gz is supposed to contain the HTML file. What module did not install the HTML docs? Jenda === [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == There is a reason for livi

Re: avoid Perl modules?

2002-03-05 Thread Jenda Krynicky
relevant (I don't mind if a service starts in 2 secs or 1.7 secs) or can be removed using things like mod_perl or PerlEx. Which will make much bigger difference because it'll remove other more important overheads. In either case ... computing power is cheap, programmer's time is e

Re: A problem with "perldoc"

2002-03-05 Thread Jenda Krynicky
DERR "Yep, perldoc.bat got started\n\n"; into it just below the use strict; ? Jenda === [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == There is a reason for living. There must be. I've seen it somewhere. It's just that in

  1   2   >