fork download
  1. #!/usr/bin/perl
  2. my $version=6.1;
  3. $version =~ /\d\./;
  4. print "$&"; # => 6.
Success #stdin #stdout 0s 6000KB
stdin
Standard input is empty
stdout
6.