TroubleShooter78a

Untitled

Jun 29th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.03 KB | None | 0 0
  1.  
  2. #!/usr/bin/perl
  3. use strict;
  4. use warnings;
  5.  
  6. print "Hoeveel?\n";
  7. my $hoeveel = <STDIN>;
  8. chomp $hoeveel;
  9. print "You typed: $hoeveel\n";
  10.  
  11. my $y = -931.96483;
  12. my $z = 1000;
  13. my @a = qw{Nederland Duitsland};
  14. my $m = 0;
  15.  
  16. for (my $i=1; $i <= $hoeveel; $i++) {
  17.    $y = $y + 155;
  18.    $z = $z +1;
  19.    $m = $i -1;
  20.    print <<EOT;
  21.  <g
  22.      transform="translate(-124.85653,$y)"
  23.      id="layer$z">
  24.     <text
  25.        xml:space="preserve"
  26.        style="font-style:normal;font-variant:normal;font-weight:normal
  27. +;font-stretch:normal;font-size:126.0375061px;line-height:125%;font-fa
  28. +mily:Arial;-inkscape-font-specification:'Arial, Normal';text-align:st
  29. +art;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-ancho
  30. +r:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stro
  31. +ke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
  32.        x="-45.714272"
  33.        y="235.21936"
  34.        id="text3336"><tspan
  35.          id="tspan3338"
  36.          x="-45.714272"
  37.          y="235.21936">$a[$m]</tspan></text>
  38.   </g>
  39.  
  40. EOT
  41. };
Add Comment
Please, Sign In to add comment