in reply to Verifying If a directory exists

You need to remove the trailing newline from the user input.

Replies are listed 'Best First'.
Re^2: Verifying If a directory exists
by edimusrex (Monk) on Feb 23, 2012 at 18:15 UTC

    Ah, perfect...so easy. Corrected by adding chomp to the scalar. Thanks!