Hayl_ has asked for the wisdom of the Perl Monks concerning the following question:
i have the following code.|-aterm(2559,ddicks)---screen(2560)---screen(2561)---bash(2563)---su(1 +4303,root)---bash(14306)
all i am getting as $user is the number "2". what am i doing wrong? in the end i am going to want to get the first number and user and the number after su(foreach (@su_procs) { print "\n$_\n"; $user eq split /.*\(/; print "$user\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: learning: why doesn't this split work?
by davido (Cardinal) on Aug 25, 2003 at 23:50 UTC | |
|
Re: learning: why doesn't this split work?
by bobn (Chaplain) on Aug 25, 2003 at 22:41 UTC | |
by Anonymous Monk on Aug 26, 2003 at 11:15 UTC | |
|
Re: learning: why doesn't this split work?
by sgifford (Prior) on Aug 25, 2003 at 23:01 UTC | |
|
Re: learning: why doesn't this split work?
by Anonymous Monk on Aug 26, 2003 at 00:12 UTC | |
|
Re: learning: why doesn't this split work?
by Hayl_ (Acolyte) on Aug 26, 2003 at 02:14 UTC |