Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: minimal match regular expression

by james28909 (Deacon)
on Mar 03, 2015 at 16:56 UTC ( [id://1118633]=note: print w/replies, xml ) Need Help??


in reply to Re^2: minimal match regular expression
in thread minimal match regulara expression

you can also:
use warnings; use strict; my $match, $pruned = split(/_/, $_); print $match
at work so cant* test it haha

Replies are listed 'Best First'.
Re^4: minimal match regular expression
by AnomalousMonk (Archbishop) on Mar 03, 2015 at 20:51 UTC

    ... and it doesn't work haha.

    Tested, works:

    c:\@Work\Perl>perl -wMstrict -le "$_ = 'wppwd01a0099_NET_basp_virtual_adapter'; my ($match) = split(/_/, $_); print qq{'$match'}; " 'wppwd01a0099'


    Give a man a fish:  <%-(-(-(-<

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-25 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found