in reply to Screenshot with Perl
use the module URI to break the url and use parts you needs (update: and discard unneeded parts that breaks filename creation):
use URI; ... my $url = shift; # https://www.tricentis.com/ my $uri = URI->new( $url ); my $filename = $uri->host().'.png'; #or whatever you prefere
L*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Screenshot with Perl
by Perlchaoui (Sexton) on Nov 12, 2018 at 11:31 UTC | |
by marto (Cardinal) on Nov 12, 2018 at 11:36 UTC | |
by Perlchaoui (Sexton) on Nov 12, 2018 at 12:58 UTC |