On 3/8/2014 12:41 AM, shawn wilson wrote:
my $str = "foo (3 bar): baz";

my $test = "foo (3 bar): baz";
my ($p1, $p2, $p3) = $test =~ /([^]+) \(([0-9]+).*\) ([a-z]+)/;
print "p1=[$p1] p2=[$p2] p3=[$p3]\n";

Use of uninitialized value $p1 in concatenation (.) or string at ./lock_report.pl line 11. Use of uninitialized value $p2 in concatenation (.) or string at ./lock_report.pl line 11. Use of uninitialized value $p3 in concatenation (.) or string at ./lock_report.pl line 11.
p1=[] p2=[] p3=[]
P

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to