Re: missing the boat
- From: "A. Sinan Unur" <1usa@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 30 Apr 2005 20:12:59 GMT
"Michael De Tomaso" <mdetomaso@xxxxxxxxxx> wrote in news:9zPce.15457
$R46.3867@xxxxxxxxxxxxxxxxxxxx:
>
> Q: given a text file: "arp.txt" as follows:
....
> D:\study\perl\WIP>type arp.txt
>
> Interface: 192.168.1.100 --- 0x2
> Internet Address Physical Address Type
>
> 192.168.1.107 00-01-02-7c-94-47 dynamic
> 192.168.1.109 00-50-ba-a2-90-86 dynamic
....
> #!perl -w
>
> print "where is mdtFRIENDS:\n";
> print `grep "00\-50\-ba\-a2\-90\-86" arp.txt`;
>
> print "test over\n";
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> Q: why don't get the line with the mac address on the screen?
I don't know. It works on my system, although I do not see the point of
the exercise. If you are just going to use perl to spawn grep, why not
just grep in the first place?
> D:\study\perl\WIP>grep "00\-50\-ba\-a2\-90\-86" arp.txt
> 192.168.1.109 00-50-ba-a2-90-86 dynamic
Good for you.
> Q: where am I missing the boat???
By mispelling the word tomato, doing it in a particularly gaudy way, and
not using a proper sig separator so my newsreader can automatically snip
the stupid eyesore.
--
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
.
- References:
- missing the boat
- From: Michael De Tomaso
- missing the boat
- Prev by Date: Re: using CGI::Carp
- Next by Date: Re: Looking for Perl Grammar
- Previous by thread: missing the boat
- Index(es):
Relevant Pages
|