sub sortByColor()
{
my $filename = $_[0];
my $no_of_columns = $_[1];
...
}
The quoted code from the OP defines a subroutine that is prototyped to take no parameters, and its first two statements operate on the first two passed parameters! One way or the other, this isn't going to work. Standard prototype warning to the novice Perler: Please don't use prototypes in Perl unless you know what they do. Please see Prototypes in perlsub and especially Far More than Everything You've Ever Wanted to Know about Prototypes in Perl -- by Tom Christiansen.
Give a man a fish: <%-(-(-(-<
In reply to Re: Perl OLE Excel Sort By Color
by AnomalousMonk
in thread Perl OLE Excel Sort By Color
by martinslmn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |