On Mon, Sep 05, 2005 at 02:27:36PM +0100, Stephen Quinney wrote: > I have two variables and I want to remove the contents of one from the > other. The situation in this case is a directory name (dir) and a > filename (name) which is an absolute path. I want to display the > filename part only with the directories removed.
Does the path exist? If so, there's the File plugin: $ perl -MTemplate -le '$t=q![% USE File( "/usr/bin/perl"); File.name %]!; Template->new->process(\$t)' perl If you don't mind the stat. Hum. I thought there was a File::Basename plugin. -- Bill Moseley [EMAIL PROTECTED] _______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
