G
~greg
Why does this work...
use strict;
$|=1;
sub Test
{
(*a,*b) = @_;
print "$a\n$b\n";
}
my $A = 'this is';
my $B = 'a test';
Test(\$A,\$B);
(prints:
this is
a test)
....but this doesn't?
use strict;
$|=1;
sub Test
{
(*a,*c) = @_;
print "$a\n$c\n";
}
my $A = 'this is';
my $C = 'a test';
Test(\$A,\$C);
(Variable "$c" is not imported at ... line...
Global symbol "$c" requires explicit package name at ... line ...)
?
(Something to do with 'sort()' maybe?)
use strict;
$|=1;
sub Test
{
(*a,*b) = @_;
print "$a\n$b\n";
}
my $A = 'this is';
my $B = 'a test';
Test(\$A,\$B);
(prints:
this is
a test)
....but this doesn't?
use strict;
$|=1;
sub Test
{
(*a,*c) = @_;
print "$a\n$c\n";
}
my $A = 'this is';
my $C = 'a test';
Test(\$A,\$C);
(Variable "$c" is not imported at ... line...
Global symbol "$c" requires explicit package name at ... line ...)
?
(Something to do with 'sort()' maybe?)