Created
February 9, 2012 10:54
-
-
Save MaximeD/1779258 to your computer and use it in GitHub Desktop.
have fun with subroutines args
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
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| my @file = ("med.txt"); | |
| &columnize(@file); | |
| sub columnize { | |
| foreach my $file(@_) { | |
| open(F, '<:utf8', $file); | |
| while(<F>) { | |
| my @colonne = split(",", $_); | |
| print join("\t", @colonne); | |
| } | |
| close(F); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment