my $request=$ENV{'QUERY_STRING'}; $request=~/([-\w_]+\.($ext))/g; my $file=$1; #### my ($file) = $ENV{'QUERY_STRING'} =~ /([-\w_]+\.($ext))/g; #### foreach(@code){ $_=~s//>/g; } #### foreach(@code){ s//>/g; }