Search Results

Search: Posts Made By: deindorfer
14,761
Posted By deindorfer
Perl: XKCD Geohash Generator
Ever Read XKCD? Check this out: xkcd: Geohashing (http://xkcd.com/426/)

here's a Perl Script that implements the algorithm in the comic:



#! /usr/bin/perl

use strict;
use warnings;
...
2,086
Posted By deindorfer
Perl: Unbuffered Keyboard Read to Exit Running Code
use Term::ReadKey;
ReadMode 4;

until ( ReadKey(-1) eq 'Q' ) {
... Your Program Here ...
}

ReadMode 0; # Reset tty before exiting
exit;



There you are, sir.
14,761
Posted By deindorfer
Use Perl;
Perl can do everything BASH can do a lot faster. Perl can also do many things which BASH cannot, e.g. connect to a legion of RDBMS implementations seemlessly with DBI, and support full OO...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy