#!/usr/bin/perl -wuse strict;print "enter new file name: ";chomp(my $newname = );rename "../yourData.dat", $newname or die "rename failed: $!\n";print "file moved successfully!\n";