“Newid” Réponses codées

Newid

* fix http:// links to https:// where certain (4)

* feedbacked
Fair Flatworm

Newid

# Functional style
use Digest::MD5 qw(md5 md5_hex md5_base64);
 
$digest = md5($data);
$digest = md5_hex($data);
$digest = md5_base64($data);
 
# OO style
use Digest::MD5;
 
$ctx = Digest::MD5->new;
 
$ctx->add($data);
$ctx->addfile($file_handle);
 
$digest = $ctx->digest;
$digest = $ctx->hexdigest;
$digest = $ctx->b64digest;
Fair Flatworm

Newid

> cpanm --interactive Task::Kensho
Fair Flatworm

Newid

There are many different ways to style code with GitHub's markdown. If you have inline code blocks, wrap them in backticks: `var example = true`.  If you've got a longer block of code, you can indent with four spaces:

    if (isAwesome){
      return true
    }

GitHub also supports something called code fencing, which allows for multiple lines without indentation:

```
if (isAwesome){
  return true
}
```

And if you'd like to use syntax highlighting, include the language:

```javascript
if (isAwesome){
  return true
}
```
Fair Flatworm

Newid

# Functional styleuse Digest::MD5 qw(md5 md5_hex md5_base64); $digest = md5($data);$digest = md5_hex($data);$digest = md5_base64($data); # OO styleuse Digest::MD5; $ctx = Digest::MD5->new; $ctx->add($data);$ctx->addfile($file_handle); $digest = $ctx->digest;$digest = $ctx->hexdigest;$digest = $ctx->b64digest;
Fair Flatworm

Newid

> cpanm --interactive Task::Kensho
Fair Flatworm

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code