Re: Calculations with date

2004-01-18 Thread James Edward Gray II
On Jan 18, 2004, at 5:20 PM, danield wrote: Hello all, I am looking for an advice or suggestion in this task: I do have a Perl script which contains 2 variables ($low, $high). The value assigned to them depends on which day am I running that Perl script. Moreover, the variable $low has always be

Re: C# on linux

2004-01-18 Thread Randal L. Schwartz
> "Oliver" == Oliver Schnarchendorf <[EMAIL PROTECTED]> writes: Oliver> You can run C# on Linus I think Linus would object to that. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/secu

Re: Calculations with date

2004-01-18 Thread Owen Cook
On Sun, 18 Jan 2004, danield wrote: > > I am looking for an advice or suggestion in this task: > > I do have a Perl script which contains 2 variables ($low, $high). The > value assigned to them depends on which day a

exit perl script and cd in bash?

2004-01-18 Thread Kenton Brede
I've been searching the archives and google for an answer. I suspect it can't be done but thought I'd ask. What I'm trying to do is create a tool such as "cdargs", in perl, to simplify moving between directories on the command line. The problem I'm having of course is actually changing the she

Re: Calculations with date

2004-01-18 Thread Dan Anderson
100:1 there's a date arithmetic module on CPAN which would do exactly what you need. However, (at least from my point on the net), CPAN appears to be down. -Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Calculations with date

2004-01-18 Thread danield
Hello all, I am looking for an advice or suggestion in this task: I do have a Perl script which contains 2 variables ($low, $high). The value assigned to them depends on which day am I running that Perl script. Moreov

Re: C# on linux

2004-01-18 Thread Dan Anderson
> One problem though... you can't use Visual Studio on Linux, because it's > MS-ware. That's not 100% true. Of course, whether or not he can run it without any problems is a different story. If I remember correctly and Hummingbird allows him to do the Windoze equivalent of an ssh with X f

Re: C# on linux OT

2004-01-18 Thread Dan Anderson
On Mon, 2004-01-19 at 04:26, rhlinux wrote: > hello all, > Do any one know how can i run C# on linux, and if i can use the visual studio editor. > and How please This is way off topic. However, there are a number of ways to run windows programs on Linux, including Wine, Crossover Office, VMWare

Re: C# on linux

2004-01-18 Thread Oliver Schnarchendorf
On Mon, 19 Jan 2004 11:26:52 +0200, rhlinux wrote: > Do any one know how can i run C# on linux, and if i can use the > visual studio editor. This is not really the place to ask this question... still you will get an answer: You can run C# on Linus by going to

Re: Fwd: AUTOLOAD error in a module

2004-01-18 Thread Luca Ognibene
On Sun, Jan 18, 2004 at 10:08:53AM -0800, drieux wrote: > >On Jan 18, 2004, at 9:32 AM, Luca Ognibene wrote: > >> > >>package gai; > >>require Exporter; > >>require DynaLoader; > >>@ISA = qw(Exporter DynaLoader); > >>package gai; > >>bootstrap gai; > >>package gai; > >>@EXPORT = qw( ); > >>1; > >

C# on linux

2004-01-18 Thread rhlinux
hello all, Do any one know how can i run C# on linux, and if i can use the visual studio editor. and How please thanks

Re: Building Perl 5.8.2 for distribution

2004-01-18 Thread Kenton Brede
On Sun, Jan 18, 2004 at 09:07:44AM -0500, Holler, Lesley W ([EMAIL PROTECTED]) wrote: > Hi all, > > I am current attempting to build perl for distribution at my site. I want to > build perl and all modules that I need in one directory, and distribute it in > another. > (*NOTE I want this to

RE: Why isn't perl used more in business and industry

2004-01-18 Thread Charles K. Clarkson
Robert <[EMAIL PROTECTED]> wrote: : : There was a huge outcry from the other programming languages : that Perl was being unfair because it was so good. I hate it when languages cry. Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254 968-8328

Re: Why isn't perl used more in business and industry

2004-01-18 Thread Robert
"Dan Anderson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Most of the scripts I see end in an extension like .jsp, .asp, .dll, or > something which says that they aren't perl. Is there a reason more > businesses and online companies don't use perl? > > -Dan > There was a huge o

Building Perl 5.8.2 for distribution

2004-01-18 Thread Holler, Lesley W
Hi all, I am current attempting to build perl for distribution at my site. I want to build perl and all modules that I need in one directory, and distribute it in another. (*NOTE I want this to do this on our dedicated compile server and therefore wish to separate build from install director

Re: Matching and general expressions

2004-01-18 Thread aSH
It works like charm Kenton! Thank you very much! :) aSH On Sunday, January 18, 2004, at 06:14 PM, Kenton Brede wrote: On Sun, Jan 18, 2004 at 05:22:46PM +0100, aSH ([EMAIL PROTECTED]) wrote: Hello, I'm trying to learn and use the patterns. This is my first "serious" try with perl. I have a lo

Fwd: AUTOLOAD error in a module

2004-01-18 Thread drieux
Sometimes life is Ironic. I had meant to send this to the list, sent it, and then remembered that I wanted to add something. As a general rule of good form, one should leave all upper case package names to "sections" and all lower case package names to 'pragma' - as such one may want to think about

Re: AUTOLOAD error in a module

2004-01-18 Thread Luca Ognibene
On Sat, Jan 17, 2004 at 06:58:56PM -0800, drieux wrote: > > >but when he try to launch a simple example : > > ./hello-world.pl > > Use of inherited AUTOLOAD for non-method gai::gai_init() is deprecated > > at ./hello-world.pl line 9. Can't locate auto/gai/gai_init.al in @INC > > (@INC contains: /u

On import v. Just Do It.

2004-01-18 Thread drieux
p0: yes, one can use an import() from a package to make something like the scam of 'require in line' for the twin pragma of 'use strict' and 'use warnings' { oye! } p1: But there is this minor technical overhead that comes with the process - 1.a: one needs to use h2xs to make sure that th

Re: Matching and general expressions

2004-01-18 Thread Kenton Brede
On Sun, Jan 18, 2004 at 05:22:46PM +0100, aSH ([EMAIL PROTECTED]) wrote: > Hello, > > I'm trying to learn and use the patterns. This is my first "serious" > try with perl. > > I have a long list of words and phrases that I need to find. > > Let's take this example. I want to find this patterns

Re: Why isn't perl used more in business and industry

2004-01-18 Thread Wiggins d'Anconia
Bakken, Luke wrote: Most of the scripts I see end in an extension like .jsp, .asp, .dll, or something which says that they aren't perl. Is there a reason more businesses and online companies don't use perl? -Dan I would bet just about every major company uses Perl in one way or another. The f

Matching and general expressions

2004-01-18 Thread aSH
Hello, I'm trying to learn and use the patterns. This is my first "serious" try with perl. I have a long list of words and phrases that I need to find. Let's take this example. I want to find this patterns anywhere, no matter if there are followed by other characters: Central PendingCall obje

RE: Search replace using 2 lines for pattern

2004-01-18 Thread Charles K. Clarkson
: -Original Message- : From: Bertrand Mansion [mailto:[EMAIL PROTECTED] : Sent: Sunday, January 18, 2004 7:56 AM : To: Charles K. Clarkson; [EMAIL PROTECTED] : Subject: Re: Search replace using 2 lines for pattern : : : <[EMAIL PROTECTED]> wrote : : : > Bertrand Mansion <[EMAIL PROTEC

Re: Use strict inside module to apply to entire script?

2004-01-18 Thread James Edward Gray II
On Jan 18, 2004, at 12:12 AM, Steve Grazzini wrote: On Saturday, January 17, 2004, at 06:21 PM, Dan Muey wrote: I was curious if it's possible to have a module like so: package Foo:Monkey; use strict; use warnings; You can call "strict->import" like this: package Foo::Monkey; sub import

Re: Search replace using 2 lines for pattern

2004-01-18 Thread Bertrand Mansion
<[EMAIL PROTECTED]> wrote : > Bertrand Mansion <[EMAIL PROTECTED]> wrote: > : > [snip] > : I have tried many times with no success. I can easily change > : the "Received:" header to be > : "From [EMAIL PROTECTED]:" but as there > : are more than one "Received:" header, they all get replaced, > :

RE: Search replace using 2 lines for pattern

2004-01-18 Thread Charles K. Clarkson
Bertrand Mansion <[EMAIL PROTECTED]> wrote: : [snip] : I have tried many times with no success. I can easily change : the "Received:" header to be : "From [EMAIL PROTECTED]:" but as there : are more than one "Received:" header, they all get replaced, : which is bad. : : I think I need a regex tha

Search replace using 2 lines for pattern

2004-01-18 Thread Bertrand Mansion
Hi, I have a big mail archive in which the From... top header has disappeared and has been replaced by an empty newline. I know it is above the first Received: header so I can locate it. The mail headers start like this: Received: from smtpout.mac.com ([204.179.120.85]) by lists.apple.com (8.1

Perl/Tk on Windows (XP)

2004-01-18 Thread Robert
Is there a reference somewhere that talks about Windows XP theme problems/issues or tips and tricks? Specifically, a default menu does not have the right color, and if I make the menu background white, the area around the tearoff is still the default color. Stuff like that. MPTK will be on the w

Re: Why isn't perl used more in business and industry

2004-01-18 Thread Tassilo von Parseval
On Sat, Jan 17, 2004 at 06:52:27PM -0600 James Edward Gray II wrote: > On Jan 17, 2004, at 3:51 PM, James Edward Gray II wrote: > > >A recent article on Perl.com covered this a little: > > > >http://www.perl.com/pub/a/2004/01/09/survey.html > > And look what I read on Slashdot today: > > http://

Re: Suggestions for Submitting to CPAN

2004-01-18 Thread Tassilo von Parseval
On Sat, Jan 17, 2004 at 02:32:25PM -0500 Dan Anderson wrote: > I've read the tutorial on creating a Makefile.PL for a module I'm > submitting to CPAN, and I've applied for a PAUSE ID, but I was curious > if anyone whos been through the process before knows of any pit falls I > should be careful of,

RE: Redirect stdout, stderr to file and stdout

2004-01-18 Thread Larry Guest
I think I have it. I had to have close (STDERR) close (STDOUT) close (TEE) -Original Message- From: Larry Guest [mailto:[EMAIL PROTECTED] Sent: Saturday, January 17, 2004 11:22 PM To: 'Randal L. Schwartz'; [EMAIL PROTECTED] Subject: RE: Redirect stdout, stderr to file and stdout This

RE: Redirect stdout, stderr to file and stdout

2004-01-18 Thread Larry Guest
This is very close. But the script hangs and wont exit the "tee" command. I ran the script using "strace" and it sits there like this. write(1, "Backup and Replication is comple"..., 65Backup and Replication is complete for mysite.com ) = 65 close(3)= 0 munmap(0x4