Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: more elegant way to parse this?

by tybalt89 (Monsignor)
on Feb 24, 2017 at 06:39 UTC ( [id://1182715]=note: print w/replies, xml ) Need Help??


in reply to more elegant way to parse this?

#!/usr/bin/perl use strict; use warnings; my $out = join '', <DATA>; # fake data :) my @essids = map /SSID: (.*)/, split /^BSS/m, $out; use Data::Dumper; print Dumper \@essids; __DATA__ BSS <blah blah> SSID: <ssid> <blah blah> BSS <blah blah> SSID: <ssid2> <blah blah> BSS <blah blah> SSID: <ssid3> <blah blah>

yes? no? maybe?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1182715]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found