diff options
author | John Ankarström <john@ankarstrom.se> | 2021-05-07 01:03:48 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-05-07 01:03:48 +0200 |
commit | 0d66f87241fd136c1d5236eed62c5dad1d6e0bba (patch) | |
tree | 14016a6965f17a525557d3b1cd3ae06b724f7efd | |
parent | eff71d913041ac2ca1881356972b0e13428d0cb2 (diff) | |
download | perlisdead-0d66f87241fd136c1d5236eed62c5dad1d6e0bba.tar.gz |
Don't use lexical $a
-rwxr-xr-x | run/irc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -10,12 +10,12 @@ $ua->ssl_opts(verify_hostname => 0); $ua->env_proxy; $ua->agent(''); -my $a = 'https://netsplit.de/channels/details.php?room=%23perl&net=freenode'; -my $r = $ua->get($a); +my $u = 'https://netsplit.de/channels/details.php?room=%23perl&net=freenode'; +my $r = $ua->get($u); die $r->status_line if not $r->is_success; if ($r->decoded_content =~ m{<img border="0" src="(/tmp/channels/.*?\.png)" alt="(.*?)"}) { print <<HTML; -<a href="$a"><img border="0" src="https://netsplit.de$1" alt="$2"/></a> +<a href="$u"><img border="0" src="https://netsplit.de$1" alt="$2"/></a> HTML } |