A more normal formulation of this would be:
in reply to split function
$a,$b,$1,$2 etc are special variables that Perl uses.
chomp; #deletes the trailing "new line" line ending
#this works for files from any OS
my @array = split(';',$_);
Never assign values to any of these.
These should be "read only" variables as far as your code is concerned.
Is there a limit of length that split function can handle, otherwise, it will truncate the line into next line. is there a way how to resolve it?
print; #prints $_ (the line from $fh_in)
my ($first_thing) = split(';',$_);
There is no "hard limit" on the length of the expression that split can handle nor is there a limit on the size of the resulting array. ...well ok.. there is a limit somewhere, but this limit is certainly not 36 ... it is in the range of many thousands or even more... In a practical sense: NO. There is no limit, meaning that the limit is so huge that you won't encounter it in normal programming.