in reply to Re^3: tk option+value in variable?
in thread tk option+value in variable?

Use split to split a string into a list.
#!/usr/bin/perl use warnings; use strict; use List::Util qw{ sum }; my ($x, $y) = (2, 3); my $opt = "$x, $y"; my @opts = split /,\s*/, $opt; print sum(@opts);

The dashes are just a convention. They were somehow common at the time Perl/Tk was created, so there might be other modules using them. See the explanation of "unary -" in perlop.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]