/[webpac]/trunk/filter/isn_swish.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/filter/isn_swish.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26 - (hide annotations)
Sun Feb 23 07:02:55 2003 UTC (17 years, 9 months ago) by dpavlin
File size: 289 byte(s)
new filters

1 dpavlin 20 #!/usr/bin/perl -w
2    
3     # example filter to convert ISBN and ISSN to hyphen and non-hyphen version
4    
5 dpavlin 26 sub isn_swish {
6 dpavlin 20 my @out;
7     foreach my $nr1 (@_) {
8     push @out,$nr1; # save original
9     my $nr2 = $nr1;
10     $nr2 =~ s/\-//g;
11     push @out,$nr2; # save version without hyphens
12     }
13     return @out;
14     }
15    
16     1;

Properties

Name Value
cvs2svn:cvs-rev 1.2
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26