Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: capture value from two patterns (updated)

by LanX (Saint)
on Aug 20, 2020 at 23:37 UTC ( [id://11120948]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for (qw(a X b)) {
        my $id = $1
    ...
       print qq{'$_' -> '$id'\n};
    
    }
    
  2. or download this
    C:/Perl_524/bin\perl.exe -w d:/exp/pm_or_regex.pl 
    Use of uninitialized value $id in concatenation (.) or string at d:/ex
    +p/pm_or_regex.pl line 5.
    'a' -> 'a'
    'X' -> ''
    'b' -> 'b'
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2024-04-19 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found