- or download this
fetch("google.com") > my $content;
...
url("google.com")->() >> _self | _save_as_tree("./root");
$_->() | _save_as_tree("./root") while $_;
- or download this
my $content = fetch("google.com");
- or download this
url("google.com")->() >> _self | _save_as_tree("./root");
- or download this
# hmmm, looks confusing:
save_as_tree("./root", fetch( url("google.com") ) );
...
my $url = Some::Module::Name->new( url => "google.com" );
$url->fetch;
$url->save_as_tree("./root");