in reply to Re^3: tk option+value in variable?
in thread tk option+value in variable?
#!/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.
|
|---|