$_ = "$pwd/$_" for @paths; # oder etwas gesprächiger: for my $path (@paths) { $path = "$pwd/$path"; }