# let's say you have a data captured in textrea textarea( -name => 'sequence', -rows => 10, -columns => 50, -wrap => 'physical' ),br # then you would need to store it into a variable my $seq_var = param('sequence'); # Size of the variable is captured this way: my $fsize = length($seq_var); if ($fsize > $fsize_limit) { # Do whatever you want }