mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 00:27:23 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			239 B
		
	
	
	
		
			Perl
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			239 B
		
	
	
	
		
			Perl
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env perl
 | 
						|
 | 
						|
use warnings;
 | 
						|
use strict;
 | 
						|
 | 
						|
my $args = join ' ', @ARGV;
 | 
						|
 | 
						|
my $qargs = quotemeta $args;
 | 
						|
 | 
						|
my $result = `qalc $qargs`;
 | 
						|
 | 
						|
$result =~ s/^.*approx.\s+//;
 | 
						|
$result =~ s/^.*=\s+//;
 | 
						|
 | 
						|
print "$args = $result\n";
 | 
						|
# print "$result\n";
 |