#!/usr/bin/perl -d:Slides # SLIDES - SLIck's DEvelopment Suite # Copyright (c) 2001 Matt Ficken. All rights reserved. # Any use of this program is subject to explicit permission of Matt Ficken. # (Thus if Matt gives you a copy, you can't just go give it to someone else) # AUTHOR: Slick aka - Matt Ficken # DATE: 26 September 2001 # DESCRIPTION: This launches the Slides module without the user needing to enter in # complex command-line options to the perl interpreter # tell DB that this program is the Starter, (not a script to be debugged) DB->SetStarter; # needs to be the first line executed! # if the -? or -h command-line option was used (@ARGV contains command-line options) if ( lc($ARGV[0]) eq "-\?" or lc($ARGV[0]) eq "-h" ) { # show the HELP message then exit print <Configure(%args); while (1) { # use eval { } not eval ( ) !! eval { require ($filename); }; # >> the file is recompiled each time so any changes will take effect without restarting program!! if ($@) { # ignore the error if it is just not returning a true value if ( $@ =~ /$filename did not return a true value/i ) { $@ = substr($@,index($@,/$filename did not return a true value/i),); $@ = substr($@,index($@,"line"),); $@ = substr($@,index($@,".")+1,); chomp ($@); if ( $@ eq " " ) { $@ = ''; } } if ( $@ ) { print "error: '$@'\n"; # load interfaces to fix the problem! } } DB->R; # reset to beginning of tape print "Slides: Restarting!\n"; } # TODO # 1 - get variable types # 2 - get swapping to work # 3 - load TAPE for playback (as part of Slides::PPR) # 4 - Detecting Tk Events # BUGLIST # 1 - Tk windows canvas stay up after restart!! # get Tk hashes for Visual Tk # destroy them on restart! # FEATURES # 1 - no standard interface, U make your own # 2 - set subs/modules as 'INTERESTING' otherwise they are skipped over # 3 - records programs 1;