| Home » Faqs » Perl variables » Init multiple variables |
How do I initialize multiple variables without having to manually specify each one?
$a = 0;
$b = 0;
$c = 0;
$d = 0;
#!/usr/bin/perl
use strict;
use warnings;
my ($a, $b, $c, $d);
$a = $b = $c = $d = 0;