my $var; $var = "path_to_my_lib"; $var =~ m/lib/; say $1; [download]
In reply to Use of uninitialized value $1 by Pazitiff