Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

curl without backticks and system()

by urbansumo (Novice)
on Jan 29, 2017 at 16:12 UTC ( #1180561=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    our $response = `curl -sILk wordpress.org/latest | grep Content-Dispos
    +ition`;
    
  2. or download this
    Content-Disposition: attachment; filename=wordpress-4.7.2.tar.gz
    
  3. or download this
    sub get_latest_wordpress_version {
            our $url = "https://wordpress.org/latest";
    ...
            our ($wp_latest_version) = $response =~ /(\d+.\d+(.\d+)?)/;
            return $wp_latest_version;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1180561]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2019-12-06 08:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (154 votes). Check out past polls.

    Notices?