File: makenewexample

package info (click to toggle)
libxml-dt-perl 0.3-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 296 kB
  • ctags: 42
  • sloc: perl: 914; xml: 424; makefile: 64
file content (17 lines) | stat: -rwxr-xr-x 269 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl

@l = <ofex*.pl>;

$name = "ofex". (@l+1) .".pl";

open (G,">>../MANIFEST") or die;
print G "examples/$name\n";
close G;

open (F,">$name ") or die;

print F "#!/usr/bin/perl\n\n=head1 $name\n\n\n\=cut\n\n use XML::DT\n\n";

close F;

exec("vi $name");