Complex splitting or alternative matching

2007-02-15 Thread Karyn Williams
I am comparing the passwd file to a file of numbers. The numbers match GECOS info in the passwd file. I want the lines in the passwd file not matching lines in the $students file printed to another file. I used examples of others code to come up with the following. It works OK. My problem is that t

Re: How to mimic a CLI using perl with STDIN

2007-02-15 Thread Tom Phoenix
On 2/15/07, Gauthier, Dave <[EMAIL PROTECTED]> wrote: I would like to mimic linux command line behavior from inside a perl script. I guess the only thing I'm missing us the up/down arrow behavior (scrolll up/down the previous input line(s) stack) It sounds like you're talking about the "histo

Re: parsing problem

2007-02-15 Thread Shiping Wang
Thank you John. I have learned a lot from you and others just by following this 'Perl Beginners' list'. Shiping At 02:00 PM 2/15/2007, John W. Krahn wrote: Shiping Wang wrote: > Hi, Hello, > I wrote a parsing script, it is working but give me some error message > at beginning: Use of uniniti

Re: Inefficient code?

2007-02-15 Thread Tom Phoenix
On 2/15/07, Johnson, Reginald (GTI) <[EMAIL PROTECTED]> wrote: My code is comparing the variables node and db in one input file to bkup_node and bkup_db in the other input file. Really? if (($node =~ /$bkup_node/) && ($db =~ /$bkup_db/)) { It looks as if you're usi

Inefficient code?

2007-02-15 Thread Johnson, Reginald \(GTI\)
My code is comparing the variables node and db in one input file to bkup_node and bkup_db in the other input file. If they match then a line is written to the output file. While I am getting the desired output I don't think I am doing this in the most efficient manor. When I have the print stateme

How to mimic a CLI using perl with STDIN

2007-02-15 Thread Gauthier, Dave
I would like to mimic linux command line behavior from inside a perl script. I guess the only thing I'm missing us the up/down arrow behavior (scrolll up/down the previous input line(s) stack) Is there a way to do this? Thanks -dave

Re: parsing problem

2007-02-15 Thread John W. Krahn
Shiping Wang wrote: > Hi, Hello, > I wrote a parsing script, it is working but give me some error message > at beginning: Use of uninitialized value in concatenation (.) or string > ... and also it gives some unwanted stuff. To get around this problem, I > want to directly go to the line and star

Re: logic help

2007-02-15 Thread David Moreno Garza
On Wed, 2007-02-14 at 21:35 -0500, Tony Heal wrote: > I am working on a script to back trace debian package (program) dependencies. > Here is how the systems works > > Package A needs packages D,E & F installed before it will install > > Package D needs package G, H & I installed before it will

parsing problem

2007-02-15 Thread Shiping Wang
Hi, I wrote a parsing script, it is working but give me some error message at beginning: Use of uninitialized value in concatenation (.) or string ... and also it gives some unwanted stuff. To get around this problem, I want to directly go to the line and start extract result, in this case I w

[SOLVED]: Recommend a module for IP discovery

2007-02-15 Thread Beginner
On 15 Feb 2007 at 11:46, Beginner wrote: > Hi All, > > I need to discover all the used ip addresses on my subnet, hopefully > getting the netbios name as well and any other details. > > Basically i ran out of dhcp leases today. I need to increase the size > of the pool but want to have some de

Recommend a module for IP discovery

2007-02-15 Thread Beginner
Hi All, I need to discover all the used ip addresses on my subnet, hopefully getting the netbios name as well and any other details. Basically i ran out of dhcp leases today. I need to increase the size of the pool but want to have some details of what hosts are using what before I make any ch