From a338f199ea747bbb6fb9ffd53de9f0444baa88dc Mon Sep 17 00:00:00 2001 From: battilo Date: Sat, 2 Jun 2018 16:27:02 +0200 Subject: [PATCH] gitignore prova --- prova.pl | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100755 prova.pl diff --git a/prova.pl b/prova.pl deleted file mode 100755 index 08f3fd2..0000000 --- a/prova.pl +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/perl -use warnings; -use strict; -my $string= "20180418103606_G201_ID1111_DT2222.csv"; -my @strings = $string =~ /(.{1,4})(.{1,2})(.{1,2})(.{1,2})(.{1,2})(.{1,2})_(.{1,4})_(.{1,6})_(.{1,6}).*/; -foreach(@strings) { - print "$_\n"; -} - - - my $fileDate = $strings[0] . "/" . $strings[1] . "/" . $strings[2];; - my $fileTime = $strings[3] . ":" . $strings[4] . ":" . $strings[5]; - my $unittype = $strings[6]; - my $unit = $strings[7]; - - print $fileDate . "\n"; - print $fileTime . "\n"; - print $unittype . "\n"; - print $unit . "\n"; \ No newline at end of file