leonidlm has asked for the wisdom of the Perl Monks concerning the following question:
Someone :) ?use constant { ARRAY_REF = [1,2,3,4,5], STRING => '.+?', }; # I NEED TO USE '\' with the constant if ($line =~ /${\STRING}/); # while on the other side I use '+' with the CONSTANT HERE print "hey!" if (grep {/ERROR/} @{+ARRAY_REF});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Constants refferences
by Tanktalus (Canon) on Aug 21, 2008 at 14:19 UTC | |
|
Re: Constants refferences
by kyle (Abbot) on Aug 21, 2008 at 14:32 UTC | |
by gone2015 (Deacon) on Aug 21, 2008 at 17:28 UTC | |
by Anonymous Monk on Aug 22, 2008 at 07:16 UTC | |
|
Re: Constants refferences
by dHarry (Abbot) on Aug 21, 2008 at 15:16 UTC | |
by leonidlm (Pilgrim) on Aug 21, 2008 at 15:30 UTC | |
by perrin (Chancellor) on Aug 21, 2008 at 16:11 UTC | |
by ikegami (Patriarch) on Aug 21, 2008 at 22:00 UTC | |
by TGI (Parson) on Aug 22, 2008 at 18:02 UTC |