File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
doc/manual/source/command-ref Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -242,16 +242,21 @@ print(t)
242
242
```
243
243
244
244
Similarly, the following is a Perl script that specifies that it
245
- requires Perl and the ` HTML::TokeParser::Simple ` and ` LWP ` packages:
245
+ requires Perl and the ` HTML::TokeParser::Simple ` , ` LWP ` and
246
+ ` LWP::Protocol::Https ` packages:
246
247
247
248
``` perl
248
249
# ! /usr/bin/env nix-shell
249
- # ! nix-shell -i perl --packages perl perlPackages.HTMLTokeParserSimple perlPackages.LWP
250
+ # ! nix-shell -i perl
251
+ # ! nix-shell --packages perl
252
+ # ! nix-shell --packages perlPackages.HTMLTokeParserSimple
253
+ # ! nix-shell --packages perlPackages.LWP
254
+ # ! nix-shell --packages perlPackages.LWPProtocolHttps
250
255
251
256
use HTML::TokeParser::Simple;
252
257
253
258
# Fetch nixos.org and print all hrefs.
254
- my $p = HTML::TokeParser::Simple-> new(url => ' http ://nixos.org/' );
259
+ my $p = HTML::TokeParser::Simple-> new(url => ' https ://nixos.org/' );
255
260
256
261
while (my $token = $p -> get_tag(" a" )) {
257
262
my $href = $token -> get_attr(" href" );
You can’t perform that action at this time.
0 commit comments