Do we have an autochomp in Perl?
This is what my Perl code looks like for monitoring a Unix folder : #!/usr/bin/perl use strict; use warnings; use File::Spec::Functions; my $date = `date`; chomp $date; my $datef = `date +%Y%m%d%H%M.%S`; chomp $datef; my $pwd = `pwd`; chomp $pwd; my $cache = catfile($pwd, "cache"); my $monitor = catfile($pwd, "monme"); my $...