Thanks changing to ls worked.
In reply to Re^4: Perl Regex \A or ^ Not Working by thundercat in thread Perl Regex \A or ^ Not Working by thundercat