Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use warnings;
  4. use strict;
  5.  
  6. use Term::UI;
  7. use Term::ReadLine;
  8.  
  9. while () {
  10. my $term = Term::ReadLine->new('prompt');
  11. my $reponse = $term->get_reply(
  12. prompt => 'Choisis une formule :',
  13. choices => ['TVA 19.6', 'TVA 5.5', 'Augmentation', 'Reduction'],
  14. default => 'TVA 19.6',
  15. );
  16.  
  17. print "Vous avez choisi : $reponse\n";
  18.  
  19. if ($reponse = 'TVA 19.6') {
  20. require "19.6.pl";
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement