Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: grep in line and print

by roboticus (Chancellor)
on Jan 24, 2013 at 19:29 UTC ( #1015215=note: print w/replies, xml ) Need Help??


in reply to Re^2: grep in line and print
in thread grep in line and print

justbow:

No, I meant like this:

my @macall = qw(print @input); foreach $line (@macall) { print "<$line>\n"; if ($line =~ /C4:46:19:75:C1:55:\s+(\S+)/) { $id = $1; } } print "ID = $id"; return (0);

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015215]
help
Chatterbox?
[Lady_Aleena]: Ratazong, you didn't know about Cookies?
[Lady_Aleena]: shmem, jedikaiti would appreciate that. 8)

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2017-04-26 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (471 votes). Check out past polls.