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
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
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
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
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
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
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
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
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
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
--- 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
.--[ 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.
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
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
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
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
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 -
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
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
19 matches
Mail list logo