http://qs321.pair.com?node_id=11123287


in reply to Re: Can't write values from sorted array of structs
in thread Can't write values from sorted array of structs

"This seems reasonable because the documentation suggests that the arguments to struct should be within brackets."

The parentheses aren't important. OP puts use Class::Struct before the package statement, so the struct function is being imported into main instead of into Carrier_Info.