blib/lib/The/synthesizer.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran 0.0% 0 / 6 Conditioncond 0.0% 0 / 11 MC/DCmcdc 0.0% 0 / 6 Subroutinesub 0.0% 0 / 1 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 39 CC 4 SCAR 30.0
CC
4
Cov
0%
import
20.0
CRAP 20.0
1 package The::synthesizer;
2  
3 =head1 NAME
4  
5 The::synthesizer - Why don't I use the synthesizer
6  
7 =head1 SYNOPSIS
8  
9 perl -e'use The::synthesizer';
10  
11 The code above will open the URL
12 L<http://open.spotify.com/track/0oks4FnzhNp5QPTZtoet7c> on Linux, Windows or
13 OS X.
14  
15 =head1 DESCRIPTION
16  
17 When I was fifteen, sixteen, when I started really to play the guitar, I
18 definitely wanted to become a musician. It was almost impossible because
19 the dream was so big. I didn't see any chance because I was living in a
20 little town; I was studying. And when I finally broke away from school and
21 became a musician, I thought, "Well, now I may have a little bit of a
22 chance," Because all I really wanted to do is music - and not only play
23 music, But compose music.
24  
25 At that time, in Germany, in '69-'70, they had already discotheques. So, I
26 would take my car, would go to a discotheque and sing maybe 30 minutes. I
27 think I had about seven, eight songs. I would partially sleep in the car
28 because I didn't want to drive home and that help me for about almost two
29 years to survive in the beginning.
30  
31 I wanted to do a album with the sound of the '50s, the sound of the '60s,
32 of the '70s and then have a sound of the future. And I said, "Wait a
33 second...I know the synthesizer - why don't I use the synthesizer which is
34 the sound of the future?" And I didn't have any idea what to do, but I
35 knew I needed a click so we put a click on the 24 track which then was
36 synched to the Moog Modular. I knew that it could be a sound of the future
37 but I didn't realise how much impact it would be.
38  
39 My name is Giovanni Giorgio, but everybody calls me Giorgio.
40  
41 Once you free your mind about a concept of harmony and music being
42 correct, you can do whatever you want. So, nobody told me what to do, and
43 there was no preconception of what to do.
44  
45 =cut
46  
47 our $VERSION = '0.0201';
48  
49 sub import {
50 my $class = shift;
51 my $url = shift || 'http://open.spotify.com/track/0oks4FnzhNp5QPTZtoet7c';
52 my $os = $ENV{OPERATING_SYSTEM} || $^O;
53 my $m;
54  
55 $os =~ /linux/i and exec "xdg-open $url";
56 $os =~ /darwin/i and exec "open $url";
57 $os =~ /win/i and exec "start $url";
58  
59 open my $LYRICS, '<', __FILE__;
60 while(<$LYRICS>) {
61 last if /=cut/;
62 print if $m;
63 next unless /=head1 DESCRIPTION/;
64 $m++;
65 }
66 }
67  
68 =head1 AUTHOR
69  
70 Jan Henning Thorsen - L<mailto:jhthorsen@cpan.org>
71  
72 =cut
73  
74 1;