use App::ClusterSSH::Range; my $range=App::ClusterSSH::Range->new(); my @list = $range->expand('range{0..5}');
Perform string expansion looking for ranges before then finishing off using File::Glob::bsd_glob.
File::Glob::bsd_glob
Create a new object to perform range processing
Expand the given strings. Ranges are checked for and processed. The resulting string is then put through File::Glob::bsd_glob before being returned.
Ranges are of the form:
base{start..stop} a{0..3} => a0 a1 a2 a3 b{4..6,9,12..14} => b4 b5 b6 b9 b12 b13 b14
To install App::ClusterSSH, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::ClusterSSH
CPAN shell
perl -MCPAN -e shell install App::ClusterSSH
For more information on module installation, please visit the detailed CPAN module installation guide.