0.940V 0.940V 0.940V 0.940V 0.740V 0.740V 0.740V 0.740V #### for my $count (0..100) { if( $voltages[$count] == "0.940V" ) { # Did not work if( $voltages[$count] =~ /^0\.9[0-4]+V$/ ) { # Did not work if( $voltages[$count] =~ /94/ ) { # Did not work if( $voltages[$count] =~ /^0.*V$/ ) { #Did not work if( $voltages[$count] =~ /V$/ ) { # Even this did not work Do something }