you second @EXPORT_OK= statement reset the EXPORT_OK array, I believe the correct syntex should be.
our @EXPORT_OK = qw(@T_AREA %T_IDS); Tor. Jerry Preston wrote: > > Hi!, > > I do not understand what I am doing wrong. I can pass an hash this way and > not an array using the following: > > require Exporter; > > our @ISA = qw(Exporter); > our @EXPORT = qw(); > our @EXPORT_OK = qw( @T_AREA ); > our @EXPORT_OK = qw( %T_IDS ); > > where > > @T_AREA = ( "", "NORTH", "SOUTH" ); > > %T_IDS = ( > NORTH=> [ qw/KT201 KT202 KT203 KT210 KT211 KT212 KT215 > KT216 KT217 KT218 KT219 KT220 KT221/ ], > > SOUTH=> [ qw/PT211 PT212 PT213 PT214 PT215 PT216 PT217 > PT218/ ], > > ); > > Why can I not export the array T_AREA ? > > Thanks, > > Jerry -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]