Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Grouped Regular Expression not set assign default value

by tybalt89 (Monsignor)
on Feb 20, 2018 at 20:12 UTC ( [id://1209610]=note: print w/replies, xml ) Need Help??


in reply to Grouped Regular Expression not set assign default value

#!/usr/bin/perl # http://perlmonks.org/?node_id=1209586 use strict; use warnings; local ($/, $\) = ("<SUBEND", "\n"); /SUBEND/ and print "Update Command ", join ',', /MSISDN=(\d+)/ ? "<$1>" :'MSISDN=notSet', /C=(\w+)/g while <DATA>; __DATA__ <SUBBEGIN MSISDN=123476789678; ODBIC=BIC; ODBOC=BAOC; <SUBEND <SUBBEGIN ODBIC=BIC; ODBOC=BAOC; <SUBEND

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-26 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found