in reply to Chomp not working

Hello sandy105,

chomp removes the trailing newline from a string, if there is one; otherwise, it does nothing (unlike chop, which removes the final character from a string). To remove initial whitespace, you need something like this:

$line =~ s/^\s+//;

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,