RE: Cron Job

2002-02-07 Thread Thiebaud Richard
Just as a comment, this question is somewhat off-topic for this mailing group. > -Original Message- > From: Mike Brentlinger [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 07, 2002 7:44 PM > To: [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Subject: Re: Cron Job > > > you want to ad

intermal vs external sort (was: RE: Q: How to sort Array of Hashes)

2002-01-30 Thread Thiebaud Richard
Suppose you have a large file (hundreds of thousands or millions of records) you want to sort, then process in Perl. Does anyone have experience of relative speeds of: 1. Read the lines of the file into Perl, parse each line, store the lines in an array (either an array of arrays or array of ha

RE: Best way to invoke a perl script from another perl script

2002-01-28 Thread Thiebaud Richard
Why not just:   system "perl -w ConvertApChecks.pl"; -Original Message-From: Dirk Bremer [mailto:[EMAIL PROTECTED]]Sent: Monday, January 28, 2002 11:17 AMTo: [EMAIL PROTECTED]Subject: Re: Best way to invoke a perl script from another perl script     WriteLog

RE: where to find perlref for autovivify (was RE: Strange assignment)

2002-01-25 Thread Thiebaud Richard
g the word "autovivify" sometime between the second and third editions of the Camel book. > -Original Message- > From: Jeffrey [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 25, 2002 5:38 PM > To: Thiebaud Richard; Perl win32 > Subject: Re: where to find perl

where to find perlref for autovivify (was RE: Strange assignment)

2002-01-25 Thread Thiebaud Richard
> From: Rubinow, Larry [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 25, 2002 4:26 PM > To: Perl win32 > Subject: RE: Strange assignment > > > Carl Jolley wrote: > > > More to the point, assurance that the hash element is an array > > reference is required in order that the following push

RE: Strange assignment

2002-01-25 Thread Thiebaud Richard
Ths initial assignment may not be necessary, at least in some versions of Perl. In Activestate 629, the following: use strict; my %a = (); push @{$a{"x"}}, "abcdef"; my @a1 = @{$a{"x"}}; my $a1_size = scalar @a1; print "a1_size: $a1_size\n"; print "a1[0]: $a1[0]\n"; gives: C:\TEMP>t1.pl a1_size

RE: Slightly OT: A faster way?

2002-01-23 Thread Thiebaud Richard
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 23, 2002 5:39 PM > To: [EMAIL PROTECTED] > Subject: Slightly OT: A faster way? > > > Hi everyone, > > I am writing some modules to parse and unpack ISO 8211 > encoded files (many > GB

RE: Regular expression for an IPv4 address

2002-01-16 Thread Thiebaud Richard
The following: use strict; sub try1; try1 "001.001.001.001"; try1 "1.1.101.1"; try1 "002.2.102.001"; exit(0); sub try1{ my $str = shift; my $str2 = $str; $str2 =~ s/(^|\.)(0*)(\d*)/$1$3/go; print "in: '$str' out: '$str2'\n"; } gives: C:\TEMP>c:\temp\t1.pl in: '0

RE: Desktop database options

2001-12-13 Thread Thiebaud Richard
From: Simon Oliver [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 13, 2001 3:51 AM > To: Thiebaud Richard > Cc: 'Cornish, Merrill'; 'Marcus'; > [EMAIL PROTECTED] > Subject: Re: Desktop database options > > > Thiebaud Richard wrote: > > >

RE: Text based menus on Win32 and *nix

2001-12-11 Thread Thiebaud Richard
Have you looked at pdcurses? http://pdcurses.sourceforge.net/ > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Saturday, December 08, 2001 3:53 PM > To: [EMAIL PROTECTED] > Subject: Text based menus on Win32 and *nix > > > > Hello all, > > I am curre

RE: what is this variable/value anyway?

2001-12-11 Thread Thiebaud Richard
Are you thinking of the "ref" operator, which returns the type a reference points to? > -Original Message- > From: Edward G. Orton [mailto:[EMAIL PROTECTED]] > Sent: Saturday, December 08, 2001 6:11 PM > To: Perl-Win32-Users Mailing List > Subject: what is this variable/value anyway? >

RE: Help re finding file or its path

2001-11-30 Thread Thiebaud Richard
Bill Luebkbert wrote: > I think he wants: > > print "script name: $0\n"; > > use FindBin qw($RealScript $RealDir); > print "fully qualified script name: $RealDir/$RealScript\n"; > Alternately under Win32, if using Perl 5.6: use Win32; my ($scriptpath, $scriptname) = Win32::

RE: pulling values from a hash?

2001-11-26 Thread Thiebaud Richard
> From: Satelle, StevenX [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 26, 2001 6:02 PM > To: Perl Users Win32 (E-mail) > Subject: pulling values from a hash? > .., > foreach $k (keys %vals) { > $key = $vals{$k}; >print "$$key[0] = $$key[2]\n"; > } > print "$vals{'mach

RE: Good IDE's, either freeware or commercial, for debugging?

2001-11-19 Thread Thiebaud Richard
Thanks to everyone for their responses. As a followup to my question, Jurgen Guntherodt has corrected the error I was having with Open Perl IDE with breakpoints in modules not being recognized. Thanks, Jurgen, for quick and helpful response! Open Perl IDE nicely does what I was looking for as a

RE: Looking for Win32::TieRegistry

2001-11-15 Thread Thiebaud Richard
PPM> search tieregistry Packages available from http://www.ActiveState.com/PPMPackages/5.6: Win32-TieRegistry [0.23] Powerful and easy ways to manipulate a registry PPM> > -Original Message- > From: Rob Lugton [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 15, 2001 7:50 PM > To: [

RE: print() problem

2001-11-15 Thread Thiebaud Richard
> -Original Message- > From: Mark Veinot [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 15, 2001 3:00 PM > To: Carl Jolley; Jordan > Cc: [EMAIL PROTECTED] > Subject: Re: print() problem > > > I would certainly recommend periods '.' between the literal > strings, and not > commas.

RE: Quotemeta in Regex

2001-11-15 Thread Thiebaud Richard
> From: Bompa [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 14, 2001 10:02 PM > To: Thiebaud Richard > Cc: perl-win32-users > Subject: Re: Quotemeta in Regex > > > Thiebaud Richard wrote: > > More precisely, \Q puts a "\" before each non-alphab

OT -- text editors in windows (was: Good IDE's, either freeware or commercial, for debugging?)

2001-11-12 Thread Thiebaud Richard
>From: Jeffrey [mailto:[EMAIL PROTECTED]] >Sent: Friday, November 09, 2001 10:06 PM >To: [EMAIL PROTECTED] >Subject: RE: Good IDE's, either freeware or commercial, for debugging? > > The main point that I am making is that *I* don't need > an IDE for Perl -- so a simple, free (as in free beer > or

RE: Good IDE's, either freeware or commercial, for debugging?

2001-11-09 Thread Thiebaud Richard
users@listserv. ActiveState. com (E-mail) Subject: RE: Good IDE's, either freeware or commercial, for debugging? You can have my UltraEdit when you pry my cold dead hands from the keyboard. ;) -Original Message----- From: Thiebaud Richard [mailto:[EMAIL PROTECTED]] Sent: Friday, November

Good IDE's, either freeware or commercial, for debugging?

2001-11-09 Thread Thiebaud Richard
What IDE's for Perl development under Win32 do people like? I'm the primary developer for a Perl/TK applicaiton with about 10,000 lines of code. I'm interested trying an IDE to use, primarily for debugging. I use UltraEdit as my primary text editor and it has good Perl syntax coloring as well as

ActivePerl 629: need IE5 if not using web?

2001-09-27 Thread Thiebaud Richard
The documentation for the installation of ActivePerl says that it requires Internet Explorer 5. If I am running perl from the command-line, and not doing anything related to the internet or the web, is Internet Explorer required in this case? ___ Perl-

RE: Why is this wrong

2001-02-07 Thread Thiebaud Richard
Omit the ")" your code: last if $contents =~ /^[^\#]/ ); should be: last if $contents =~ /^[^\#]/; > From: Andrew Staples [mailto:[EMAIL PROTECTED]] > Can someone tell me why I get a syntax error with this line > of code? > ___ Perl-Win32-U

RE: Background

2001-01-31 Thread Thiebaud Richard
>From: Christopher Hahn <[EMAIL PROTECTED]> >Subject: Background >I have successfully use the Proc::Background module >to run an NT batch file in the bacground. >However, the bat file's standard out is still spewed >at the command line. Additionally, this bat file >has pauses that require

RE: -d not identifying a directory?

2001-01-31 Thread Thiebaud Richard
Details? do you have a code snippet? What is the printout from "perl -V"? In a quick and dirty test, -d works for me on Activestate build 522. -Original Message- From: Lee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2001 10:42 AM To: [EMAIL PROTECTED] Subject: -d not identif

RE: Trouble with nmake

2001-01-25 Thread Thiebaud Richard
"cl" is the command line for the Microsoft Visual C++ compiler. If you don't have it installed, this is your problem. If you do have it installed, you need from the command line to execute VCVARS32.bat from the command line, out of the bin file for MSVC. -Original Message- From: Enrico

Redirecting from bat file

2001-01-23 Thread Thiebaud Richard
Jonathan D Johnston wrote: > ... Unfortunately, you can't redirect > the input or output of a .BAT. Annoying, I know. Couldn't you execute: cmd.exe /c xx.bat outfile or something like that? ___ Perl-Win32-Users mailing list [EMAIL PROTECTED]

RE: including perl w/a product distribution

2001-01-23 Thread Thiebaud Richard
This is for distributing outside your organization. You can distribute it inside your organization okay. > > Please note that to redistribute ActivePerl (as opposed to a Perl > distribution you build yourself), you need a redistribution license from > ActiveState. _