in reply to GetOptions problem

How about this command-line structure:
perl foo.pl --channel="1,forever" --channel="2,1:20" \ --channel="3,2:50" --channel="7,forever"
which is handled by this code:
#!/usr/bin/perl use strict; use warnings; use Data::Dumper; use Getopt::Long; my @channels; GetOptions('channel=s' => \@channels); print Dumper(\@channels);
You just have to parse the data out of @channels...