in reply to function glob('*_${var}')
Single quotes ('...') don't interpolate variables, double quotes ("...") do. You need double quotes in the third line of your code. Also, it is possible (and preferred) to declare a variable when it is first used. Replace the second and third line in your code with
my @M4 = glob "M4_$target";
Anno
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: function glob('*_${var}')
by steph_bow (Pilgrim) on Jul 13, 2007 at 08:56 UTC |