Re: help with subroutines and reading/writing to file

2008-12-02 Thread Jim Hill
blake in <[EMAIL PROTECTED]>: > I am new to perl and attempting to write a script that will do a reverse dns > lookup on an ip [snip] Just looking that far, I don't think your script will work as you intend. Here's a ptr lookup using dig ... | dig -x 217.151.101.100 | 100.101.151.217.in-addr.ar

Re: help with subroutines and reading/writing to file

2008-12-01 Thread Telemachus
On Mon Dec 01 2008 @ 7:13, blake askew wrote: > Thanks for the help John. I have made the changes you suggested and managed > to get everything working properly. One more question though that is > completely different, how do I allow users to specify switches on the > command line in any order to

Re: help with subroutines and reading/writing to file

2008-12-01 Thread blake askew
Thanks for the help John. I have made the changes you suggested and managed to get everything working properly. One more question though that is completely different, how do I allow users to specify switches on the command line in any order to be used in my program. For example, I want the syntax t

Re: help with subroutines and reading/writing to file

2008-11-30 Thread John W. Krahn
blake askew wrote: I am new to perl and attempting to write a script that will do a reverse dns lookup on an ip, store this result into a file, then read the file in order to do a whois lookup. The whois lookup answer should also be written to a seperate file. I have the reverse dns lookup workin

RE: Help with subroutines

2005-05-16 Thread Charles K. Clarkson
Madhur Kashyap wrote: : Ohh I am extremely sorry ... When I was trying to write the code : exceprt I forgot to add some lines but showed the log generated from : complete code. Can you reproduce the error in an example which we can run? If not, we will probably need

Re: Help with subroutines

2005-05-16 Thread John Doe
Am Montag, 16. Mai 2005 11.57 schrieb Madhur Kashyap: > Ohh I am extremely sorry ... When I was trying to write the code > exceprt I forgot to add some lines but showed the log generated from > complete code. > > > > sub loadNxfDB { > > >print "$_[0]"; > > >my $nxfDBFH=new FileHandle; > > >

Re: Help with subroutines

2005-05-16 Thread Madhur Kashyap
Ohh I am extremely sorry ... When I was trying to write the code exceprt I forgot to add some lines but showed the log generated from complete code. > > sub loadNxfDB { > >print "$_[0]"; > >my $nxfDBFH=new FileHandle; > >open ($nxfDBFH,$_[0]) or die "Error: Cannot open netname cross-re

Re: Help with subroutines

2005-05-16 Thread John Doe
Am Montag, 16. Mai 2005 06.03 schrieb Madhur Kashyap: > Have a look at the code snippet from the perl program I have written Hello, > use strict; > use FileHandle; > use IPC::Open2; > > use vars { ... $topCellName ...}; > > sub setup { > .. > $topCellName="crm_com"; >... > } > > sub l