* Don't autovifivy @fields array entries.
[interchange.git] / code / UI_Tag / available_ups_internal.coretag
1 # Copyright 2002-2007 Interchange Development Group and others
2
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.  See the LICENSE file for details.
7
8 # $Id: available_ups_internal.coretag,v 1.4 2007-03-30 23:40:54 pajamian Exp $
9
10 UserTag available_ups_internal Version $Revision: 1.4 $
11 UserTag available_ups_internal Routine <<EOR
12 sub {
13         my (@files) = glob('products/[0-9][0-9][0-9].csv');
14         return '' unless @files;
15         my $out = '';
16         for(@files) {
17                 s:/(\d+)::
18                         or next;
19                 $out .= "$1\t$1\n";
20         }
21         return $out;
22 }
23 EOR