]> git.proxmox.com Git - dab.git/commitdiff
switch dab method over to modern prototype syntax
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 21 Oct 2022 11:35:10 +0000 (13:35 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 21 Oct 2022 11:36:44 +0000 (13:36 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
dab

diff --git a/dab b/dab
index 63844c7719c8735352e4aac1d1a4b517ff27b31a..b554ae0224b1d4b6f314e0b29c1bbbe0ae3ec908 100755 (executable)
--- a/dab
+++ b/dab
@@ -64,7 +64,7 @@ if (!$cmd) {
 }
 
 my $dab;
-sub dab() {
+sub dab :prototype() { # make it a directly as `dab->foo()` callable singleton
     $dab = PVE::DAB->new() if !$dab;
     return $dab;
 }