storing issue: all goes well but the script stores not at the intended place

HI there .- thx for the words

running the little script and collecting / getting results… i gather images as thumbnails - so far so good.

all is nice and runs well so far

what about the idea of storing the results in a folder called images or so!?) is this doable? it would help alot since i get stored the results in a folder.
And the many results do not mess the machine…



use strict;
use warnings;

use WWW::Mechanize::Firefox;

my $mech = new WWW::Mechanize::Firefox();

open my $urls, '<', 'urls.txt' or die $!;

while (<$urls>) {
  chomp;
  next unless /^http/i;
  print "$_
";
  $mech->get($_);
  my $png = $mech->content_as_png;
  my $name = $_;
  $name =~ s#^http://##i;
  $name =~ s#/##g;
  $name =~ s/\s+\z//;
  $name =~ s/\A\s+//;
  $name =~ s/^www\.//;
  $name .= ".png";
  open my $out, ">", $ "images" or die $!;
  binmode $out;
  print $out $png;
  close $out;
  sleep 5;
}


tried to do it - to store it in a directory thusly:

 open(my $out, '>', "path/$name") or die $!; 

i did it like so…

note - the directory called images is in the very same folder…

i get the results



  perl test_8.pl

Global symbol "$images" requires explicit package name at test_8.pl line 23.
Execution of test_8.pl aborted due to compilation errors.
martin@linux-wyee:~/perl> 
martin@linux-wyee:~/perl> perl test_8.pl
Bareword found where operator expected at test_8.pl line 23, near "$/images"
        (Missing operator before images?)
syntax error at test_8.pl line 23, near "$/images "
Global symbol "$out" requires explicit package name at test_8.pl line 24.
Execution of test_8.pl aborted due to compilation errors.
martin@linux-wyee:~/perl> perl test_8.pl
Bareword found where operator expected at test_8.pl line 23, near "$/images"
        (Missing operator before images?)
syntax error at test_8.pl line 23, near "$/images "
Global symbol "$out" requires explicit package name at test_8.pl line 24.
Execution of test_8.pl aborted due to compilation errors.
martin@linux-wyee:~/perl> 
martin@linux-wyee:~/perl> perl test_8.pl
Bareword found where operator expected at test_8.pl line 23, near "$ "images"
        (Missing operator before images?)
String found where operator expected at test_8.pl line 23, at end of line
        (Missing semicolon on previous line?)
syntax error at test_8.pl line 23, near "$ "images"
Can't find string terminator '"' anywhere before EOF at test_8.pl line 23.
martin@linux-wyee:~/perl> 

any ideas - note - the images-directory is in the same folder where my script test_8.pl also resides - well guess that i have to name the path correctly,