fork(1) download
  1. #!/usr/bin/perl
  2. # your code goes here
  3. foreach my $a ("123.4", "", "123e4", "slovo") {
  4. if (($a +0) eq $a) {
  5. print $a;
  6. }
  7. }
  8.  
Success #stdin #stdout 0s 3564KB
stdin
Standard input is empty
stdout
123.4