Clean up your code so it actually compiles with strictures.
- The first line is missing a # at the very start
- "Pacakge" is not spelt corectly and must be all lower case.
- my $in = ... and my $out = ... don't compile and don't make sense.
- if ($in =~ /+\/),$text[6]){ doesn't compile and doesn't make sense
- }and{ doesn't compile and doesn't make sense
- if ($in=~ / withdrawn /),$text[5]{ doesn't compile and doesn't make sense
then provide some sample data and expected output. See I know what I mean. Why don't you?.
Premature optimization is the root of all job security