sortByColor("D:/sort.xls",12);
sub sortByColor()
{
my $filename = $_[0];
my $no_of_columns = $_[1];
...
}
You are still prototyping the sortByColor subroutine to take no parameters. You are calling the subroutine and passing it two parameters in such a way as to defeat prototype checking. I suppose one might ask why one would use prototypes in such a way, but if you're happy with the code, so am I!
More importantly, you also are apparently running your code without warnings enabled. I think this is a bad idea for one new to Perl coding (and also for the experienced): I strongly recommend that you enable them.
Give a man a fish: <%-(-(-(-<
In reply to Re^3: Perl OLE Excel Sort By Color
by AnomalousMonk
in thread Perl OLE Excel Sort By Color
by martinslmn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |