--- lib/gnump3d/plugins/random.pm 2005-12-09 11:15:30.000000000 +0800 +++ lib/gnump3d/plugins/random.pm 2005-12-09 15:16:59.000000000 +0800 @@ -475,7 +475,7 @@ # # We only care about the directory name. # - if ( $random =~ /\/?(.*\/)(.+)$/g ) + if ( $random =~ /(\/?.*\/)(.+)$/g ) { $random = $1; }