in reply to Re: Assign Output of Regex to Array (newbie)
in thread Assign Output of Regex to Array (newbie)
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Assign Output of Regex to Array (newbie)
by Kenosis (Priest) on Sep 25, 2013 at 21:03 UTC | |
|
Re^3: Assign Output of Regex to Array (newbie)
by davido (Cardinal) on Sep 25, 2013 at 22:06 UTC | |
|
Re^3: Assign Output of Regex to Array (newbie)
by Laurent_R (Canon) on Sep 26, 2013 at 07:17 UTC | |
by justsomeguy (Novice) on Oct 01, 2013 at 16:39 UTC | |
by Laurent_R (Canon) on Oct 01, 2013 at 18:05 UTC | |
by justsomeguy (Novice) on Oct 01, 2013 at 19:06 UTC | |
by Laurent_R (Canon) on Oct 01, 2013 at 21:28 UTC | |
|