Advertisement
gewur33

Untitled

Dec 29th, 2014
456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.79 KB | None | 0 0
  1. #!/usr/bin/perl -w
  2.  
  3. open (FH, $ARGV[0]);
  4. while(my $w = <FH>) {
  5.  
  6.     for(my $w = split /\t\t/,$w ) {
  7.         my @matches = $w =~ m/(\d{1,2}\.\d{1,2}\.\d{4})(\t{1,2})(\d)/g;
  8.        print($1 . " " . $3 . "\n");
  9.     }
  10. }
  11.  
  12.  
  13. #####################################################
  14.  
  15. f00@localhost ~$ perl jules.pl jules.txt
  16. Use of uninitialized value $1 in concatenation (.) or string at jules.pl line 8, <FH> line 1.
  17. Use of uninitialized value $3 in concatenation (.) or string at jules.pl line 8, <FH> line 1.
  18.  
  19. Use of uninitialized value $1 in concatenation (.) or string at jules.pl line 8, <FH> line 2.
  20. Use of uninitialized value $3 in concatenation (.) or string at jules.pl line 8, <FH> line 2.
  21.  
  22. f00@localhost ~$ cat jules.txt
  23. 1.1.2003    4       2.4.2085    7       2.1.2054    6
  24. 2.1.2054    6       2.1.2054    6       2.1.2054    6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement