http://www.perlmonks.org?node_id=1190637


in reply to Re^5: 'do' command is dead? Surely not?
in thread 'do' command is dead? Surely not?

Thanks, Corion

if (-e $file){ print "File exists\n"; } if (-f $file){ print "File is plain\n"; }

produces both messages

@INC contains

/etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base