Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Regular expression assistance

by kennethk (Abbot)
on Dec 07, 2012 at 16:26 UTC ( #1007779=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @switch;
    while ($cdp =~  m/(.*0x01.*)/g) {
        push @switch, (split /\s+/, $1)[7];
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007779]
help
Chatterbox?
[Corion]: Hurr - use lib glob '/opt/perl/foo*'; - I'm not really sure if that is sane ;-D

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2017-01-19 15:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.