in reply to Text output problem

What do you expect 'y||Y' to do? It is a simple string. If || is meant as an or operator, operators usually won't work in strings. So if you compare $export to this and the user didn't type 'y||Y' (and why should he), your if-clause will never be true

Use if ($export eq 'y' or $export eq 'Y') { ..., for example.