Clearcase

 view release on metacpan or  search on metacpan

lib/Clearcase/UCM/Streams.pm  view on Meta::CPAN

    
=pod

=head2 streams

Return a list of stream names in an array context or the number of streams in 
a scalar context.

Parameters:

=for html <blockquote>

=over

=item none

=back

=for html </blockquote>

Returns:

=for html <blockquote>

=over

=item List of streams or number of streams

Array of stream names in an array context or the number of streams in a scalar
context.

=back

=for html </blockquote>

=cut

  if (wantarray) {
    return $self->{streams} ? sort @{$self->{streams}) : ();
  } else {
    return $self->{streams} ? scalar @{$self->{streams});
  } # if
} # streams

1;

=head1 DEPENDENCIES

=head2 Modules

=over

=item L<Clearcase|Clearcase>

=back

=head1 INCOMPATABILITIES

None

=head1 BUGS AND LIMITATIONS

There are no known bugs in this module.

Please report problems to Andrew DeFaria <Andrew@DeFaria.com>.

=head1 COPYRIGHT AND LICENSE

Copyright (C) 2020 by Andrew@DeFaria.com

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.38.0 or,
at your option, any later version of Perl 5 you may have available.

=cut



( run in 0.597 second using v1.01-cache-2.11-cpan-39bf76dae61 )