Hi guys,
I have a package in a seperate file called select.fields like so,
@Season = (
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December');
return( 1 );
I have included it withand now I`m trying to use it with where $name is a variable passed in with the value Season.
But no matter how I try I cannott get it working, I figure something in the @fields = @select::$name; is screwing it up, it just wont make @fields the values of @select::$name
Any ideas welcomed, thanks.
chmod
I have a package in a seperate file called select.fields like so,
Code:
package select; @Season = (
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December');
return( 1 );
I have included it with
Code:
require "select.fields";Code:
@fields = @select::$name;But no matter how I try I cannott get it working, I figure something in the @fields = @select::$name; is screwing it up, it just wont make @fields the values of @select::$name
Any ideas welcomed, thanks.
chmod