gimcdan has asked for the wisdom of the Perl Monks concerning the following question:
I don't see how this code works... but does code from a subroutine to get clearcase view set.
I don't get the array element number of a scalar value in the statement starting "my $view..."my @ccView = `cleartool pwv`; my $setView = (grep /Set view:/, @ccView)[0]; my $view = (split(:/ , $setView))[1];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: split function
by hdb (Monsignor) on Apr 28, 2015 at 13:25 UTC | |
by gimcdan (Acolyte) on Apr 28, 2015 at 13:44 UTC | |
by AnomalousMonk (Archbishop) on Apr 28, 2015 at 13:52 UTC | |
by gimcdan (Acolyte) on Apr 28, 2015 at 14:16 UTC | |
by AnomalousMonk (Archbishop) on Apr 29, 2015 at 01:31 UTC | |
|
Re: split function
by toolic (Bishop) on Apr 28, 2015 at 13:45 UTC | |
by gimcdan (Acolyte) on Apr 28, 2015 at 15:09 UTC | |
|
Re: split function
by pme (Monsignor) on Apr 28, 2015 at 13:25 UTC |