Re: Could this be made shorter and cleaner?

2004-08-30 Thread John W. Krahn
Gavin Henry wrote: Hi all, Hello, This is my first real go at a perl script. Thoughts? Subject: Could this be made shorter and cleaner? Yes. # Globals

Re: Could this be made shorter and cleaner?

2004-08-30 Thread Gunnar Hjalmarsson
Chris Devers wrote: Gunnar Hjalmarsson wrote: Chris Devers wrote: Don't send attachments? There's no telling what an attachment contains these days; A simple check of the message source is sufficient to preclude virus etc. But why should people have to do that? A simple check of the source in, say,

Re: How do i run shell command

2004-08-30 Thread Sudhakar . Gajjala
It works for me . Thanks Sudhakar Gajjala Chris Devers <[EMAIL PROTECTED]> on 08/30/2004 10:47:55 PM Please respond to [EMAIL PROTECTED] To:Sudhakar Gajjala/C/[EMAIL PROTECTED] cc:[EMAIL PROTECTED] Subject:Re: How do i run shell command On Mon, 30 Aug 2004 [EMAIL PROTECTED] w

Re: Could this be made shorter and cleaner?

2004-08-30 Thread Chris Devers
On Tue, 31 Aug 2004, Gavin Henry wrote: # Globals my $rdiff = '/usr/bin/rdiff-backup'; my $localdir = '/home/ghenry/perl'; my $userhost = "[EMAIL PROTECTED]"; my $remotedir = '/home/slim_jim/perl'; my $args = "$localdir $userhost\:\:$remotedir"; my $to = "[EMAIL PROTECTED]"; my $from = "[EMAIL PROT

Re: Could this be made shorter and cleaner?

2004-08-30 Thread Chris Devers
On Tue, 31 Aug 2004, Gunnar Hjalmarsson wrote: Chris Devers wrote: Don't send attachments? There's no telling what an attachment contains these days; A simple check of the message source is sufficient to preclude virus etc. But why should people have to do that? A simple check of the source in, sa

Re: Could this be made shorter and cleaner?

2004-08-30 Thread Gunnar Hjalmarsson
Chris Devers wrote: Don't send attachments? There's no telling what an attachment contains these days; A simple check of the message source is sufficient to preclude virus etc. -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: Could this be made shorter and cleaner?

2004-08-30 Thread Gavin Henry
On Tuesday 31 Aug 2004 01:51, you wrote: > Gavin Henry wrote: > > > Hi all, > > > > > > This is my first real go at a perl script. Thoughts? > > Congrats on your first script. > > Suggestions: > > 1. Indent code inside blocks. ok. > > 2. The way you're calling system() looks odd. You're using mor

Re: Could this be made shorter and cleaner?

2004-08-30 Thread Gavin Henry
On Tuesday 31 Aug 2004 00:43, Chris Devers wrote: > On Tue, 31 Aug 2004, Gavin Henry wrote: > > This is my first real go at a perl script. Thoughts? > > Don't send attachments? > > There's no telling what an attachment contains these days; if it's just > a plain text Perl script then please paste i

Re: Could this be made shorter and cleaner?

2004-08-30 Thread Bob Showalter
Gavin Henry wrote: > > Hi all, > > > > This is my first real go at a perl script. Thoughts? Congrats on your first script. Suggestions: 1. Indent code inside blocks. 2. The way you're calling system() looks odd. You're using more than one arg, which is a signal to bypass the shell. But your sec

Re: Could this be made shorter and cleaner?

2004-08-30 Thread Chris Devers
On Tue, 31 Aug 2004, Gavin Henry wrote: This is my first real go at a perl script. Thoughts? Don't send attachments? There's no telling what an attachment contains these days; if it's just a plain text Perl script then please paste it inline with your message. Thanks :-) -- Chris Devers [EMA

Could this be made shorter and cleaner?

2004-08-30 Thread Gavin Henry
Hi all, This is my first real go at a perl script. Thoughts? Thanks. -- Just getting into the best language ever... Fancy a [EMAIL PROTECTED] Just ask!!! suretec-backup Description: Perl program -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <

Re: shift question

2004-08-30 Thread John W. Krahn
[EMAIL PROTECTED] wrote: I found this in a template for creating subroutines, this is the base that is created when you use the template to create the subroutine. So now the newbie part, why would you place "my $par1 = shift;" in the subroutine template, and what does it do?? Basically I am trying

Re: Regular expression generator/creator

2004-08-30 Thread Philipp Traeder
On Sunday 29 August 2004 HH:58:18, Jenda Krynicky wrote: > From: Philipp Traeder <[EMAIL PROTECTED]> > > > You're right - the problem I'm trying to solve is quite restricted - > > and I'm very thankful for this ;-) Basically, I'm trying to write an > > application that "recognizes" log file formats

Re: help getting modules installed

2004-08-30 Thread Wiggins d Anconia
Please bottom post > Now I'm trying to install Digest::MD5 because it is a prerequisite for > libwww-perl-5.800. This happens when I try to do it manually or through > the cpan shell. What does this error mean? > > > > Perl's config says that U32 access must be aligned. > > Checking if you

RE: shift question

2004-08-30 Thread Moon, John
Subject: RE: shift question [EMAIL PROTECTED] wrote: > Ok fantastic, I totally understand that, and if there were going to be > more than one thing passed, just insert $par2 = shift; on the next > line and then the second argument is in $par2, I assume.right?? Yes. You might also see it this

RE: Secure Shell and system command

2004-08-30 Thread u235sentinel
I would run system commands with the backticks. That tells Perl to run the command and place the contents in the variable you defined. System OTOH returns if the command completed successfully (at least I believe that's what happened here). > Moon, John wrote: > > Hello, > > > I run the fol

RE: shift question

2004-08-30 Thread Wiggins d Anconia
> [EMAIL PROTECTED] wrote: > > Ok fantastic, I totally understand that, and if there were going to be > > more than one thing passed, just insert $par2 = shift; on the next > > line and then the second argument is in $par2, I assume.right?? > > Yes. > > You might also see it this way: > >

RE: shift question

2004-08-30 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Ok fantastic, I totally understand that, and if there were going to be > more than one thing passed, just insert $par2 = shift; on the next > line and then the second argument is in $par2, I assume.right?? Yes. You might also see it this way: my ($par1, $par2) =

RE: shift question

2004-08-30 Thread christopher . l . hood
Ok fantastic, I totally understand that, and if there were going to be more than one thing passed, just insert $par2 = shift; on the next line and then the second argument is in $par2, I assume.right?? Chris Hood Investigator Verizon Global Security Operations Center Email: [EMAIL PROTECT

RE: shift question

2004-08-30 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > OK here comes the newbie question. > > I found this in a template for creating subroutines, this is the base > that is created when you use the template to create the subroutine. > > So now the newbie part, why would you place "my $par1 = shift;" in > the subroutine te

shift question

2004-08-30 Thread christopher . l . hood
OK here comes the newbie question. I found this in a template for creating subroutines, this is the base that is created when you use the template to create the subroutine. So now the newbie part, why would you place "my $par1 = shift;" in the subroutine template, and what does it do?? Basicall

Re: I want to compile my perl code!

2004-08-30 Thread Edward Wijaya
perl -c par.pl On Mon, 30 Aug 2004 15:49:37 +0800, pagoda <[EMAIL PROTECTED]> wrote: I want to compile my perl code, and I tried "perlcc" and "par.pl". I don't know which one is more powerful? It seems that both they are not very good. Give me a hand please. Thanks. -- To unsubscribe, e-mail: [E

I want to compile my perl code!

2004-08-30 Thread pagoda
I want to compile my perl code, and I tried "perlcc" and "par.pl". I don't know which one is more powerful? It seems that both they are not very good. Give me a hand please. Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]