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