Re: HTTP Authentication

2001-02-08 Thread Jenda Krynicky
Hi, all. As I can authenticate visitors on Perl to use not HTTP modules? __ HTTP Authentication example ?php if(!isset($PHP_AUTH_USER)) { Header("WWW-Authenticate: Basic realm=\"My Realm\""); Header("HTTP/1.0 401 Unauthorized");

Re: fork() command under windows

2001-02-08 Thread Jenda Krynicky
On Tue, 30 Jan 2001 10:22:34 -0500, bill stennett [EMAIL PROTECTED] wrote: I am having trouble with a script that trys to fork a new process. The script was OK on unix but I need it on Windows NT4 (SP6a). Is the fork() command available under NT4. I think I read somewhere that it was

Re: New Perl email question.

2001-03-16 Thread Jenda Krynicky
Thanks for all the suggestions. I am now using Mail::Sendmail and the process does continue following a bad email address, but I still get a success value back even if the address is not valid. It does bounce the message back to the "from" address, but I'm wondering if there's a way to

Re: Can't Write to .MDB File via WIN32::OLE

2001-05-21 Thread Jenda Krynicky
#!/usr/bin/perl -W #= Use the Win32 OLE module =# use Win32::OLE; #= Open Database Get Recordset =# $conn = Win32::OLE-new(ADODB.Connection); $conn-Open(DSN=AscentWeb;UID=ascent;PWD=ascent1); $rs = $conn-Execute(select * from ActivityLog;); I think you have to create

Re: References subs

2001-05-22 Thread Jenda Krynicky
From: Jan Dubois [EMAIL PROTECTED] On Mon, 21 May 2001 18:15:02 -0400, Arthur Cohen [EMAIL PROTECTED] wrote: : : sub add2hash2 { : # refer to data indirectly using local (my) hash : my $thRef = shift @_; : my %th = %$thRef; : : You are making a *copy* of the original

Re: Win32::Semaphore question

2001-05-30 Thread Jenda Krynicky
I'm trying to get some synchronisation working between several child processes, using a counting semaphore. Probably I'm doing something wrong, because I get errors when releasing the semaphore, stating that the handle is invalid. Because the release works the first time, I think I must do

Re: Win32::Semaphore question

2001-05-30 Thread Jenda Krynicky
Jenda, Thanks for your input, but I do believe I need to clear up some parts. I use a semaphore for synchronizing between parent and child(s). The semaphore starts with a initial value of, say 5 ( the maximum number of child processes I want to handle simultaneously), and the parent

RE: How to read a single line from file

2001-06-04 Thread Jenda Krynicky
From: [EMAIL PROTECTED] open (IN, a.txt) ; while (IN) { chomp ($line = ); # $line contains line from a.txt No $line contains a line from a file whose name is in @ARGV or from STDIN. You wanted $line = IN !!! Jenda == [EMAIL PROTECTED]

Re: How to read a single line from file

2001-06-04 Thread Jenda Krynicky
From: Rodney Wines [EMAIL PROTECTED] From: [EMAIL PROTECTED] open (IN, a.txt) ; while (IN) { chomp ($line = ); # $line contains line from a.txt No $line contains a line from a file whose name is in @ARGV or from STDIN. You wanted $line = IN !!! No

Win32::OLE ByRef parameters

2001-06-04 Thread Jenda Krynicky
Suppose I have COM object written in VB with a function like this : Public Function TestByRef( _ ByRef param As Variant _ ) as Variant param = Hello world End Function I am able to call this function, but the argument doesn't change when the

Re: browser problem

2001-06-21 Thread Jenda Krynicky
most of my scripts are not opening in NetscapeCommunicator.Netscape Communicator version is 4.5.All those scripts are opening in IE. Is there any special setting to make,to open the scripts in Netscape? Thanks, Sankar Set up your web server properly. Don't expect everyone to ignore the

Re: DLL-Access under Windows

2001-06-25 Thread Jenda Krynicky
as a Perl-Newbie I wounder wehter there exsist a Modul which helps me to access ALL the DLL's in my System. I have a Custom-dll which I need to use, but do not want to learn VB for it. If it is an OLE/COM object you use Win32::OLE, if it's an ordinary DLL you use either Win32::API or FFI.

Re: Error while using Threads ON WIN NT..

2001-07-03 Thread Jenda Krynicky
I want to use thread in perl on windows NT. My code is not working.. If anybody knows about this let me know.. use Thread; $thr = new Thread \sub1,A,B; sub sub1 { my @inparameter = @_; print @inpparameter \n; } IF i run this code ..It gives me error below.. ERROR : This perl

Re: Passing parameters to unlink

2001-08-22 Thread Jenda Krynicky
How can I pass parameter to unlink function? Example: $filelist=*.txt; unlink $filelist; or unlink $filelist does not work. :( unlink glob($filelist); You may only use for globbing with CONSTANTS. With something where it is clearly visible that you want Perl to glob. Otherwise you

RE: Test for exectuable file in PATH

2001-08-31 Thread Jenda Krynicky
I want to determine if a particular exectuable file is available/exists within the path. Is there a switch or function available to with/instead of the -x test? I have an example to illustrate the results of what I want to do with a simpler approach. If you want it nicely packaged you

Re: $ENV{PATH} = /bin:/usr/bin; Question

2001-08-31 Thread Jenda Krynicky
Hello Group I have the following setup when I run my code: #!/usr/local/bin/perl -wT # Limit the path the script can run under. $ENV{PATH} = /bin:/usr/bin; use strict; use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser); My question regards $ENV{PATH} = /bin:/usr/bin; I

Re: Test for exectuable file in PATH

2001-08-31 Thread Jenda Krynicky
Jenda, WOW.. ask and you shall receive. Thanks! Nice work. It is almost as if you just created that as if I wrote that email? No. I only dug it up in my old files. I was looking at the module and I was wondering ... in the following routine - if ($^O =~ /MSWin32/i) { foreach

Re: Help with PERL Script Crashing Perl Itself

2001-09-05 Thread Jenda Krynicky
I am running a home grown PERL Script and at random times during it execution it just stops and Windows NT produces a DrWatson dump for PERL that I enclose here. Do you use threads (or fork()) in your script by any chance? Jenda == [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == : What

Re: PPM

2001-10-02 Thread Jenda Krynicky
From: North, Wesley J [EMAIL PROTECTED] Is ppm -install only available on NT? We are trying to use the GD module on Solaris, and I know we can execute a ppm install GD on Windows but is this available on Unix? -Wes I believe PPM is also available for the Linux version of

Re: Problem with DBI and fork()

2001-11-01 Thread Jenda Krynicky
From: B@ge [EMAIL PROTECTED] I am writing a Perl program on Win32 that fork some processes according to database data. I used DBI and DBD::ODBC module to connect the database. All my code is OK but it has application error (like 'this memory address could not be

Re: Perl variable length

2001-11-22 Thread Jenda Krynicky
From: B@ge [EMAIL PROTECTED] Does the variable in Perl has length? Well .. the value has length. The variable doesn't have any maximum length (well ... if taken as string.You might get a numerical overflow if you try to do math with too big numbers.) I got a problem when I

Re: How install Man on Win32 ver?

2001-10-16 Thread Jenda Krynicky
From: Gillet, Michael [EMAIL PROTECTED] How install man on Win32? Well even though you should be able to find a windows version of man this is not the right place to ask. If what you want is to view the Perl manual pages then either use the HTML version you got with

RE: regexp again

2001-12-10 Thread Jenda Krynicky
From: Hemphill, Barry [EMAIL PROTECTED] Congratulations Agustin; you get the award for Worst Answer of the Week. Wow, will he get a nice diploma signed by TomC ? - You're assuming he's using DOS, and that a 'type' command would be found by the shell - Even *if* type is in

Re: MySQL - MSWord ?

2001-12-12 Thread Jenda Krynicky
From: David Mintz [EMAIL PROTECTED] Suppose you want Perl to merge an MSWord template file with data from a MySQL database. That ought not to be too hard, right? Basically, I'm trying to a help a small non-profit organization generate invoices for their annual membership

Re: how to return an error message to the system

2001-12-17 Thread Jenda Krynicky
From: jama Djafarov [EMAIL PROTECTED] guys, does anyone know how to return an error message to the system?? I need to return an error to win system. I think you are looking for die() perldoc -f die or maybe exit() perldoc -f exit Jenda

Re: Perl - WinNT installation - cmd.exe fatal error ???

2002-01-10 Thread Jenda Krynicky
Happy new year to everybody, Happy new year to you :-) Perl completely new for me. I installed the developper kit on my machine to develop a little programme which is ok. Now I have to put this programme in a production server (Win NT4) so I have to install the stable version and ...

Re: How to filter space character ??

2002-01-21 Thread Jenda Krynicky
From: Jay Liam [EMAIL PROTECTED] I got one stupid question. I am facing problem by filtering record from my MS SQL database on Windows2000. For one column, some of my records has NULL value and some has nothing, which i believe space character, not null. Wat I want to do

Re: A problem with hash references and while() loops?

2002-01-21 Thread Jenda Krynicky
From: Christopher Humphries [EMAIL PROTECTED] Can anyone shed light on this problem? I noticed some strange behaviour with a hash whilst writing a subroutine. What happens is that if I pass a hash by reference to a subroutine, traverse that hash using a while() loop,

RE: uninstalling active perl

2002-01-29 Thread Jenda Krynicky
From: Troy Topnik [EMAIL PROTECTED] Remove the directory that contains the Perl installation (usually C:\Perl), and the following registry entries: 1. HKEY_LOCAL_MACHINE/Software/ActiveState/ActivePerl 2. HKEY_LOCAL_MACHINE/Software/ActiveState/PerlScript 3.

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

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

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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: @- / @+ 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: @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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

  1   2   >