Alex Balgavy

Just some stuff about me.

Here's my dotfiles repository.

Check out my blog.

My keys: PGP, SSH

My crypto wallets (BTC, XMR)


What links here:

Perl default variable

$_ is the default variable, or the “topic”.

Once you have to explicitly write out $_, just use a meaningfully named variable. For example:

# Don't do this
while (<$fh>) {
    my $line = $_;
    ...
}

# Do this instead
while (my $line = <$fh>) {
    ...
}