**Language / Язык:** [English](perl.md) | [Русский](../ru/examples/perl.md)

# Perl

`HTTP::Tiny` + `JSON` cookbook using a Basic-auth session
(`vmware-api-session-id`) against `https://localhost`.

```bash
cd examples/perl
cpanm --installdeps .   # or install HTTP::Tiny, JSON, IO::Socket::SSL manually
perl cookbook.pl
```

Override defaults with `VSPHERE_BASE`, `VSPHERE_USER`, `VSPHERE_PASSWORD`,
`VSPHERE_VM_NAME` environment variables. See
[`cookbook.pl`](../../examples/perl/cookbook.pl) for the session → list →
create → power → wait-task → delete flow.

`HTTP::Tiny` is constructed with `verify_SSL => 0` for the local self-signed
development gateway certificate only.
