Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    ...
        say "Yes 4" if $voltage =~  /^0.*V$/;
        say "Yes 5" if $voltage =~  /V$/;
    }
    
  2. or download this
    Argument "0.940V" isn't numeric in numeric eq (==) at ./1.pl line 16.
    Argument "0.940V" isn't numeric in numeric eq (==) at ./1.pl line 16.
    ...
    Yes 4
    Yes 5
    Argument "0.740V\r\n" isn't numeric in numeric eq (==) at ./1.pl line 
    +16.
    
  3. or download this
    use Data::Dumper;
    $Data::Dumper::Useqq = 1;
    print Dumper \@voltages;