# Write entire file

```perl
spurt 'path/to/file', $file-data;
```

or

```perl
'path/to/file'.IO.spurt: $file-data;
```
