bh_perl has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
This is my script to capture some info as below:
Info is here:$$ref_entry{$1} = $2 if /^([\w ]+?)\s+:.(\d+)/; $$ref_entry{$1} = $2 if /^([\w ]+?)\s+:.'(.*)'/; $$ref_entry{$1} = $2 if /^([\w ]+?)\s+:.>(.*)</; print "TEST $1 ==> $2\n";
Location Identity : >0085 2f5b< 132321312 Required Bearer Capability : ><
I'm would be faced a problem when any items is null or blank or empty, as example on the "Required Bearer Capability" items as above. How could I faced it ?
Any ideas ?....
20030722 Edit by Corion: Removed PRE tags, added formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Faced with Null/blank/empty value
by cLive ;-) (Prior) on Jul 22, 2003 at 08:35 UTC | |
by jsprat (Curate) on Jul 22, 2003 at 08:58 UTC | |
by cLive ;-) (Prior) on Jul 22, 2003 at 09:07 UTC | |
by jsprat (Curate) on Jul 22, 2003 at 09:45 UTC | |
|
Re: Faced with Null/blank/empty value
by TomDLux (Vicar) on Jul 22, 2003 at 07:56 UTC |