Re: perl Question

2007-03-24 Thread John W. Krahn
Craig Petty wrote: > > I got a question could i write a script that look for > a ip on a network or would that be to hard to do for a > newbie? Can you describe your quest in more detail? http://www.catb.org/~esr/faqs/smart-questions.html John -- Perl isn't a toolbox, but a small machine shop

Re: perl Question

2007-03-24 Thread Jeff Pang
yes you can. Maybe you take a look at Net::Ping on CPAN? -Original Message- >From: Craig Petty <[EMAIL PROTECTED]> >Sent: Mar 24, 2007 8:18 AM >To: beginners@perl.org >Subject: perl Question > > > >I got a question could i write a script that look for >a ip on a network or would that be to

RE: perl question - unused variables

2005-06-08 Thread Ryan Frantz
ypo at mail_test line 11. If I use 'use strict;' I get a flurry of other messages ;). my $perl_experience = n00b -Original Message- From: Wagner, David --- Senior Programmer Analyst --- WGO [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 3:21 PM To: Ryan Frantz; Tro

RE: perl question - unused variables

2005-06-08 Thread Wagner, David --- Senior Programmer Analyst --- WGO
mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 08, 2005 2:52 PM > To: 'Troy S'; beginners@perl.org > Subject: RE: perl question - unused variables > > Troy S wrote: >> How can i automatically detect unused variables in Perl? >> >> i delcrae var

RE: perl question - unused variables

2005-06-08 Thread Ryan Frantz
ssage- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 2:52 PM To: 'Troy S'; beginners@perl.org Subject: RE: perl question - unused variables Troy S wrote: > How can i automatically detect unused variables in Perl? > > i delcrae variables like: &g

RE: perl question - unused variables

2005-06-08 Thread Bob Showalter
Troy S wrote: > How can i automatically detect unused variables in Perl? > > i delcrae variables like: > my $abc; > > but don't use $abc within the subroutine. > > how can i get perl to autmatically tell me that $abc is not being used > (other than the declaration) Possibly use the output o

Re: perl question

2004-01-10 Thread Wiggins d'Anconia
Please use a more informative subject, these are all Perl questions Perl Mail User wrote: Hello all Perl Gurus - I have a question in regards to an error i receive from running a script in perl from a user on my system - the error is below - I do not get this error when I run it as root jus

Re: perl question

2003-06-22 Thread Pavle Lukic
On Sat, Jun 21, 2003 at 12:40 PM -0700, Ioana Cozmuta wrote: >>I do understand the problem, however I do not know how to put it in a perl >>script. For example, in C this could be solved using pointers. >>As I mentioned in my first e-mail, the data are tab delimited. If between >>the tabs there is

Re: perl question

2003-06-22 Thread Pavle Lukic
On Sat, Jun 21, 2003 at 12:40 PM -0700, Ioana Cozmuta wrote: >I do understand the problem, however I do not know how to put it in a perl >script. For example, in C this could be solved using pointers. >As I mentioned in my first e-mail, the data are tab delimited. If between >the tabs there is no

Re: perl question

2003-06-21 Thread Paul Johnson
On Sat, Jun 21, 2003 at 11:36:36PM +0200, Paul Johnson wrote: > On Sat, Jun 21, 2003 at 12:40:19PM -0700, Ioana Cozmuta wrote: > > [ Kept on p5p so no one else need reply, followups to perl-beginners ] > > > I did not intend to offend anybody with my message nor did I realize that > > this is a v

Re: Perl question

2002-11-12 Thread Paul
--- James Parsons <[EMAIL PROTECTED]> wrote: > Good Morning all Good morning, James. =o) > Since I'm still a Newbie when it comes to Perl , so my question may > sound fairly simple to the group but here goes.. > I need to create a file that has the localtime - 1 day and -2 days. > and then

Re: Perl question

2002-11-12 Thread Frank Wiles
.--[ James Parsons wrote (2002/11/12 at 09:22:00) ]-- | | Good Morning all | | Since I'm still a Newbie when it comes to Perl , so my question may sound | fairly simple to the group but here goes.. | | I need to create a file that has the localtime - 1 day and -2 days.

Re: binmoding as Re: Perl Question

2002-05-24 Thread drieux
On Friday, May 24, 2002, at 11:18 , Michael Fowler wrote: > On Thu, May 23, 2002 at 05:07:38PM -0700, drieux wrote: >> On Thursday, May 23, 2002, at 04:57 , Michael Fowler wrote: >>>perl -O777pi~ -e's^/usr/local^/tmp/local^g' mybinaryfile.out >> >> that's what I was afeared of... had that co

Re: binmoding as Re: Perl Question

2002-05-23 Thread Michael Fowler
On Wed, May 22, 2002 at 05:58:59PM -0700, drieux wrote: > On Wednesday, May 22, 2002, at 01:35 , John W. Krahn wrote: > >perl -0777pi~ -e's^/usr/local^/tmp/local^' mybinaryfile.out > > way too freaky it works... but I am having > problems with the verification - since I just > ran this again

binmoding as Re: Perl Question

2002-05-22 Thread drieux
On Wednesday, May 22, 2002, at 01:35 , John W. Krahn wrote: > Paul Company wrote: >> >> I want to replace a string "/usr/local" with another >> string "/tmp/local" in a binary file. > > perl -0777pi~ -e's^/usr/local^/tmp/local^' mybinaryfile.out way too freaky it works... but I am having pr

Re: Perl Question

2002-05-22 Thread drieux
On Wednesday, May 22, 2002, at 12:59 , Paul Company wrote: > I want to replace a string "/usr/local" with another > string "/tmp/local" in a binary file. cf man patch what you want is 'patch' - it is not nice to try to patch binary files on the fly > This is what I wrote: > > #!/usr/local

Re: Perl Question

2002-05-22 Thread John W. Krahn
Paul Company wrote: > > I want to replace a string "/usr/local" with another > string "/tmp/local" in a binary file. perl -0777pi~ -e's^/usr/local^/tmp/local^' mybinaryfile.out > This is what I wrote: > > #!/usr/local/bin/perl > > $file = "./mybinaryfile.out"; > $s1 = `strings $file | grep -

Re: Perl question

2002-02-27 Thread Elaine -HFB- Ashton
Allison Ogle [[EMAIL PROTECTED]] quoth: *> *>I am a beginner trying to write a program which will read information from a *>log file and write it to a spreadsheet for easier viewing and organization *>but I'm not sure how to do this or how to get started. ANY help would be *>appreciatd. Please r

Re: Perl question

2001-06-18 Thread perl
You could do this: $started=0; while() { $started = 0 if($_ =~ "" && $started); $started = 1 if($_ =~ "" && !$started); print $_ if($started); ## Will print in between the 's } Ryan On Mon, 18 Jun 2001, Jack Lauman wrote: > I wrote the following to read a daily ema