Skip to content

Instantly share code, notes, and snippets.

@cfedde
Created April 16, 2013 00:11
Show Gist options
  • Save cfedde/5392341 to your computer and use it in GitHub Desktop.
Save cfedde/5392341 to your computer and use it in GitHub Desktop.
perltidy does not know about //=
#!/bin/perl
# Before perltidy
helper ndb => sub { state $db //= BCV::DB->new('SwitchCLLI') };
helper cdb => sub { state $db //= BCV::DB->new('STARS') };
# After perltidy
helper ndb => sub { state $db // = BCV::DB->new('SwitchCLLI') };
helper cdb => sub { state $db // = BCV::DB->new('STARS') };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment