- or download this
sub PUSH {
my(@array, @new_items) = @_;
...
my @target = ('RED', 'GREEN');
PUSH(@target, 'blue');
- or download this
sub PUSH {
my($array, @new_items) = @_;
...
my @target = ('RED', 'GREEN');
PUSH(\@target, 'blue');
- or download this
sub PUSH (\@@) {
my($array, @new_items) = @_;
...
my @target = ('RED', 'GREEN');
PUSH @target, 'blue';
- or download this
sub border_style ($$$) {
- or download this
sub border_style {
my($width, $style, $colour) = @_;
- or download this
sub border ($;$$) {
my($width, $style, $colour) = @_;
...
return "border: $width $style $colour;";
}
- or download this
print border('1px'), "\n";
- or download this
my @args;
push @args, $selected ? '5px' : '1px';
...
push @args, 'red' if $selected;
print border(@args), "\n";
- or download this
"border: 5px dashed red;"
- or download this
"border: 3 solid black;"