Re: can perl program do this?

2008-07-31 Thread Rob Coops
If you can make Net::Pcap connect to a remote server things will work fine, I am not sure about using Net::Pcap to do this as I never used it and from the description it seems to be a packet capture lib not so much a communication one, but as I said if you can make it reach out and talk to the othe

Re: can perl program do this?

2008-07-31 Thread Richard Lee
Rob Coops wrote: If you can make Net::Pcap connect to a remote server things will work fine, I am not sure about using Net::Pcap to do this as I never used it and from the description it seems to be a packet capture lib not so much a communication one, but as I said if you can make it reach out

Re: can perl program do this?

2008-07-31 Thread Rob Coops
Ah, I see... I think you have been misled by the name of the Net::Pcap lib, the lib is meant to produce the file you are trying to poke around in. I would do the follwoing. - Use Net::SSH or similair to connect to the remote machine. - On the remote machine use grep or similair to pull ou

Re: can perl program do this?

2008-07-31 Thread Richard Lee
Rob Coops wrote: Ah, I see... I think you have been misled by the name of the Net::Pcap lib, the lib is meant to produce the file you are trying to poke around in. I would do the follwoing. * Use Net::SSH or similair to connect to the remote machine. * On the remote machine use gre

RE: can perl program do this?

2008-07-31 Thread Thomas Bätzler
Richard Lee <[EMAIL PROTECTED]> asked: [Full quote deleted. Please quote only the relevant parts of the mail you're replying to. Thank you!] > but I am interested in grepping out the pcap file so I cannot > simply just do grep Please use some common sense. You can't use Net::Pcap on host X to p

ARGV array regarding

2008-07-31 Thread suresh kumar
Hi, This is my part of the script, if (($#ARGV == 1) && ($ARGV[0] eq "-f")) { .. if ($ARGV[0] ne "-f" ) { .. if i run my script i am seeing this kind of warnings. Use of uninitialized value in string eq

Re: ARGV array regarding

2008-07-31 Thread Rob Dixon
suresh kumar wrote: > > This is my part of the script, > > if (($#ARGV == 1) && ($ARGV[0] eq "-f")) { >.. > > > if ($ARGV[0] ne "-f" ) { > .. > > > if i run my script i am seeing this kind of warnings. >

Re: ARGV array regarding

2008-07-31 Thread Mr. Shawn H. Corey
On Thu, 2008-07-31 at 18:00 +0530, suresh kumar wrote: > Hi, > > This is my part of the script, > > if (($#ARGV == 1) && ($ARGV[0] eq "-f")) { >.. > > > if ($ARGV[0] ne "-f" ) { > .. > > > if i run my scr

Re: Unable to read the string

2008-07-31 Thread Rob Dixon
Arun wrote: > > Hi this is Arun here, i am new to perl.Here i am trying to read a > string from the serial port but i am not able to and this is my > program: > > # Read serial port until message or timeout occurs > sub ReadPort($$$) { > (my $String, my $TimeOut, my $Display) = @_; > $ob->

RE: Unable to read the string

2008-07-31 Thread Bob McConnell
From: Arun > Hi this is Arun here, i am new to perl.Here i am trying to read a > string from the serial port but i am not able to and this is my > program: You don't show the initialization for that port. How was it configured and do all of the settings match the device talking to it? The most co

Re: How do I use HTML::Stripper without lwp?

2008-07-31 Thread bdy
On Jul 24, 5:57 pm, [EMAIL PROTECTED] (Rob Dixon) wrote: > bdy wrote: > > > My code is as follows: > > > use strict; use HTML::Stripper;    useLWP::Simple qw( get );      my > > $stripper = HTML::Stripper->new(        skip_cdata => 1, strip_ws => 0  );   > >      my > > $page_html = get(http://www