Last active
February 15, 2018 17:23
-
-
Save yichao0319/6755118 to your computer and use it in GitHub Desktop.
perl:new code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/perl | |
########################################## | |
## Author: Yi-Chao Chen @ Hauoli | |
## | |
## - input: | |
## | |
## - output: | |
## | |
## - e.g. | |
## | |
## | |
########################################## | |
use strict; | |
use POSIX; | |
use List::Util qw(first max maxstr min minstr reduce shuffle sum); | |
############# | |
# Debug | |
############# | |
my $DEBUG0 = 0; | |
my $DEBUG1 = 1; | |
my $DEBUG2 = 1; ## print progress | |
my $DEBUG3 = 1; ## print output | |
############# | |
# Constants | |
############# | |
my $input_dir = ""; | |
my $output_dir = ""; | |
############# | |
# Variables | |
############# | |
############# | |
# check input | |
############# | |
if(@ARGV != 1) { | |
print "wrong number of input: ".@ARGV."\n"; | |
exit; | |
} | |
$ARGV[0]; | |
############# | |
# Main starts | |
############# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment