Guest User

Untitled

a guest
Apr 26th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #!/perl/bin/perl.exe -w
  2.  
  3. use strict;
  4.  
  5. my $username = 'zacko';
  6. my $password = 'zakar12as';
  7. my $database = 'smash';
  8.  
  9. open(SELECT,qq{mysql -u root -p$password $database -e
  10. "SELECT * from users" |}) or die $!;
  11.  
  12. my @results = <SELECT>;
  13. close SELECT;
  14.  
  15. print @results;
Add Comment
Please, Sign In to add comment