![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re^5: regex troubleby amir_e_a (Hermit) |
on Mar 05, 2010 at 11:03 UTC ( #826943=note: print w/replies, xml ) | Need Help?? |
You probably want to do something like my $var = `command`;Notice that the single quotes were replaces by backticks. There are certain problems with using backticks, but it's usually OK to use them to run a simple and safe command. Also, your current code will only capture v09.11. If you want to capture v09.11-e020, use this:
In Section
Seekers of Perl Wisdom
|
|