Upgrading perl to latest version

2005-12-12 Thread Sham Prasad
Hi all, I have perl 5.8.7 build 813 installed on my pc. can i upgrade it tonew version without uninstalling the existing version? will it affect the modules i have installed? Sham ___ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubsc

Re: Best ways to find time/date differences

2005-12-12 Thread $Bill Luebkert
Mittal, Manish wrote: > The timestap format is -DD-MM_HH:MM:SS Next time you'll need to make your own attempt : use strict; use warnings; use Time::Local; my $date1 = '2005-06-05_00:00:00'; my $date2 = '2005-06-06_01:02:03'; my $e1 = date2epoch ($date1); my $e2 = date2epoch ($date2); my

RE: Best ways to find time/date differences

2005-12-12 Thread Mittal, Manish
The timestap format is -DD-MM_HH:MM:SS Manish -Original Message- From: $Bill Luebkert [mailto:[EMAIL PROTECTED] Sent: Monday, December 12, 2005 5:41 PM To: Mittal, Manish Cc: activeperl@listserv.ActiveState.com Subject: Re: Best ways to find time/date differences Mittal, Manish wro

Re: Best ways to find time/date differences

2005-12-12 Thread $Bill Luebkert
Mittal, Manish wrote: > Hi, > >This is probably pretty simple, but I needed to know the various ways > to find the time/date difference between two date/time values. > > I have a time stamp in the UTC format, up to seconds. What does that mean 'UTC format' ? Do you mean some ASCII resprese

Re: Passing arguments by value

2005-12-12 Thread $Bill Luebkert
Peter Scott wrote: > No we aren't. The phrase "pass by reference" is a computer science term > that predates the invention of Perl. And which applies to *compiled* programs where vrbls have a descreet location. > The word "reference" therein does > not refe

Best ways to find time/date differences

2005-12-12 Thread Mittal, Manish
Hi,    This is probably pretty simple, but I needed to know the various ways to find the time/date difference between two date/time values. I have a time stamp in the UTC format, up to seconds.   Thanks Manish   ___ ActivePerl mailing

Re: Passing arguments by value

2005-12-12 Thread David Nicol
http://www.google.com/search?q=define%3A+pass+by+reference ___ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: version conflict question

2005-12-12 Thread Chris Newman
That worked. Thanks Jeff, cn P.S. - do you have any plans to fix this oddity in the installer? -Original Message- From: Jeff Griffiths [mailto:[EMAIL PROTECTED] Sent: Monday, December 12, 2005 12:49 PM To: Chris Newman Cc: activeperl@listserv.ActiveState.com Subject: Re: version confl

Re: Help splitting fields with regexp

2005-12-12 Thread DZ-Jay
On Dec 12, 2005, at 07:51, Brian Raven wrote: First, could you modify your posting style. It is impossible to determine from the above who said what. Sorry, I just noticed this. I was having problems posting from my mail client and I copy+pasted the source of the message into an SMTP telnet

Re: Passing arguments by value

2005-12-12 Thread $Bill Luebkert
Peter Scott wrote: > On Sun, 11 Dec 2005 21:32:09 -0800, $Bill Luebkert wrote: > No we aren't. The phrase "pass by reference" is a computer science term > that predates the invention of Perl. The word "reference" therein does > not refer to Perl references but to whether the caller's variable ca

Re: Help splitting fields with regexp

2005-12-12 Thread DZ-Jay
Reposting with quotes include (sorry!). See below. On Dec 12, 2005, at 04:40, $Bill Luebkert wrote: DZ-Jay wrote: But I did specify the rules: 1. Split on a specified delimiter (for the moment I'm aiming for [,;]), but ideally I would like it to be variable. 2. As opposed to CSV where quot

Re: Help splitting fields with regexp

2005-12-12 Thread DZ-Jay
On Dec 12, 2005, at 08:53, [EMAIL PROTECTED] wrote: DZ- reg exp is greedy by default, but perl has a modifier to stop that. Thanks, I was aware of that. haven't tested to prove that works correctly, but in theory it should. ? immediately after * or + will make it non-greedy I forgot to m

Re: version conflict question

2005-12-12 Thread Jeff Griffiths
Chris Newman wrote: My Perl dll used to compile, but now I get the following error: Perl lib version (v5.8.3) doesn't match executable version (v5.8.4) at /PerlApp/Config.pm line 32. BEGIN failed--compilation aborted at myplc.pl line 815. Does anybody have any idea what's going on here?

Re: Passing arguments by value

2005-12-12 Thread David Nicol
On 12/12/05, Peter Scott <[EMAIL PROTECTED]> wrote: > On Sun, 11 Dec 2005 21:32:09 -0800, $Bill Luebkert wrote: > > We're talking Perl > > references here. > > No we aren't. The phrase "pass by reference" is a computer science term > that predates the invention of Perl. The word "reference" there

version conflict question

2005-12-12 Thread Chris Newman
Title: version conflict question Hi, I recently upgraded my ActiveState Perl distro - From... ActivePerl-5.8.4.810-MSWin32-x86.msi Komodo-Professional-3.0.1-110687.msi PDK-Pro-6.0.0.117102.msi To... ActivePerl-5.8.7.815-MSWin32-x86-211909.msi Komodo-Professional-3.5.1-223842.msi PDK-

Re: Help splitting fields with regexp

2005-12-12 Thread Williamawalters
In a message dated 12/12/2005 6:38:31 A.M. Eastern Standard Time, [EMAIL PROTECTED] writes:   > I agree, and I am also self-taught and certainly not an expert at> regexps.  I would like to get a single regexp, if possible, as a matter if by ``single regexp'' you mean a one-liner, i would str

Re: Passing arguments by value

2005-12-12 Thread Peter Scott
On Sun, 11 Dec 2005 21:32:09 -0800, $Bill Luebkert wrote: > David Nicol wrote: > >> On 12/10/05, $Bill Luebkert <[EMAIL PROTECTED]> wrote: >> >>>The fact that you can modify the vrbl passed to a sub from in the sub >>>without using a reference still doesn't mean that it's passed by >>>reference.

Re: Help splitting fields with regexp

2005-12-12 Thread JPerlmutter
DZ- reg exp is greedy by default, but perl has a modifier to stop that. where .* is greedy, .*? is not so given: josh made this regexp example to show how josh can use a modifier and stop it from going past josh and: (.*)josh modify to (.*?)josh and now you get nothing. josh is at the begi

RE: Help splitting fields with regexp

2005-12-12 Thread Brian Raven
[EMAIL PROTECTED] <> wrote: > On Dec 12, 2005, at 04:40, $Bill Luebkert wrote: > > DZ-Jay wrote: > > But I did specify the rules: > 1. Split on a specified delimiter (for the moment I'm aiming for > [,;]), but ideally I would like it to be variable. > 2. As opposed to CSV where quoted strings en

Re: Help splitting fields with regexp

2005-12-12 Thread dz
On Dec 12, 2005, at 04:40, $Bill Luebkert wrote: DZ-Jay wrote: But I did specify the rules: 1. Split on a specified delimiter (for the moment I'm aiming for [,;]), but ideally I would like it to be variable. 2. As opposed to CSV where quoted strings encompass the entire field, quoted substrings

Re: Help splitting fields with regexp

2005-12-12 Thread $Bill Luebkert
DZ-Jay wrote: > But I did specify the rules: > 1. Split on a specified delimiter (for the moment I'm aiming for [,;]), > but ideally I would like it to be variable. > 2. As opposed to CSV where quoted strings encompass the entire field, > quoted substrings can exist within the field. > 3. The qu