perchut2 Hell, it's about time... | Bonsoir (ouééé le forum remarche )
je cherche à passer en perl de ceci :
Code :
- "2004 04 06 15h45",2004 04 06 ,02h00,
|
à ceci :
Code :
- "2004 04 06 15h45",2004 04 06 17h45,
|
alors dans une boucle, j'ai testé ceci (attention les yeux )
Code :
- $l =~ s#(\d{2})h(\d{2})",(\d{4}\s\d{2}\s\d{2}\s\s),(\d{2})h(\d{2}),#$1h$2,$3($1+$4)h($2+$5),#g;
|
mais ca me retourne une concaténation là ou je voudrais une réelle addition :
Code :
- ,"2004 04 06 15h45,2004 04 06 (15+02)h(45+00),
|
Quelqu'un pourrait me filer un tuyau ?
merci  |