#!/usr/bin/perl use strict; use warnings; use YAML qw(LoadFile DumpFile); my $configFile = "$ENV{HOME}/.sshfs-helper"; my $configData; if ((not -e $configFile)) { $configData = {}; DumpFile($configFile, $configData); } else { $configData = LoadFile($configFile); } sub addConfig { } sub changeConfig { } sub mount { } sub unmount { } sub list { foreach my $name (keys %{$configData}) { print " - ${name}\n"; } } sub usage { print "sshfs-helper [ add | list | edit name | mount name | unmount name | help ]\n"; } sub help { usage(); print <