in reply to Re^3: perl regular expressions
in thread perl regular expressions
First of all,Thank you so much for explaining in detail.Appreciate it.
Is there a way to combine these two scripts into one single script
I tried to do it ,but looks likes the 2nd part didn't work. Any suggestions please ?#!usr/bin/perl use feature qw/say/; use Data::Dumper; $Data::Dumper::Terse = 1; $hash = { 'testing' => { 'link' => "http://www.espn.com", 'bandwidth' => "100", 'r' => "2", }, }; say Dumper($hash); undef $/; $data = <>; $undump = undump($data); die "'testing' not found!" unless($undump->{'testing'}); say $undump->{'testing'}->{'link'} // (die "'link' not found!"); say $undump->{'testing'}->{'bandwidth'} // (die "'bandwidth not found! +");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: perl regular expressions
by AppleFritter (Vicar) on Jun 24, 2014 at 19:00 UTC |