#!/usr/bin/perl -w # This code is a part of Slash, and is released under the GPL. # Copyright 1997-2005 by Open Source Technology Group. See README # and COPYING for more information, or see http://slashcode.com/. # $Id$ use strict; use File::Basename; use Getopt::Std; # more modules (my $VERSION) = ' $Revision$ ' =~ /\$Revision:\s+([^\s]+)/; my $PROGNAME = basename($0); my %opts; # Remember to doublecheck these match usage()! usage('Options used incorrectly') unless getopts('hvu:', \%opts); usage() if ($opts{'h'} || !keys %opts); version() if $opts{'v'}; $opts{'u'} ||= 'slash'; # more usage() checks here # main program logic (in braces to offset nicely) { } # subroutines sub usage { print "*** $_[0]\n" if $_[0]; # Remember to doublecheck these match getopts()! print <