Re: grep |
|
This message is part of the following thread: | |
---|---|
![]() | the complete thread tree sorted by date |
![]() | anne aublanc at ![]() |
![]() | Edgar Bonet at ![]() |
| bon, j'ai écrit fait cela sans grep... | my $is_there = ""; | my $elt = ""; | foreach $elt (@num_phone) { | if ($elt eq $x_phone) { | $is_there = "x"; | last; | } | } | if ( $is_there eq "" ) { | push ( @num_phone, "$x_phone"); | }
| la ligne | if ( $ltel ne '' && $x_phone !~ /^$ltel.*/ ) { next; } # ltel | correspond au n° de tél que j'ai sélectionné | if ( $lttel ne '' && (! grep(/$x_phone/, @s_tel))) { next; } | bref, j'ai des grep et des expressions régulières de partout! | et les caractères spéciaux... Ils ne sont pas amis!
This message was posted to the following mailing lists: | ||||
---|---|---|---|---|
Guilde Mailing List Info | Nearby Messages | ![]() | Re: grep | Resolu Gravure DVD k3B + MDK10.01 | ![]() |
Archive des listes de la GUILDE administrated by L'administrateur | Lurker (version 2.3) |