Perl has a file globbing operator for situations like this.
try
@projectFilesExist = <$ja\{*.dsp,*.vbp}>;
print "proj already exist\n" if @projectFilesExist;
< > returns an array of files matching the pattern between the
angle brackets. The @projectFilesExist will be convert to scala
Is there any way to have a perl script move one directory into
another like:
$ mkir one two
$ mv one two
$ ls two
one
without having to use system?
I tried
use File::Copy;
mkdir 'one';
mkdir 'two';
move('one', 'two');
but this renames one to two and overwrite