I ended up doing something similar to that. Thanks!
my @PRC_PRIV = <FILE>; my @PRC_PRIV_ONLY = grep /Run as/ .. /^ /, @PRC_PRIV;
Now I need to add an element to each line in the array. Is that where push comes in?
In reply to Re^2: Assign Output of Regex to Array (newbie)
by justsomeguy
in thread Assign Output of Regex to Array (newbie)
by justsomeguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |