Re: Monat ohne fuehrende Null

"Heinz W. Pahlke" <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hallo,

On 05-Oct-2004 Michael Wenger wrote:
> 
> Vergiss meinen letzten Vorschlag. Der war sehr suboptimal ;-)

Hatte ich noch gar nicht probiert, da ich eben erst wieder nach Hause
gekommen bin.

> Dieses hier sollte funktionieren:
> (my $formatted_date = strftime("%d:%m:%Y", localtime)) =~ 
> s/[0]?(\d+):[0]?(\d+):(.*)/$1.".".$2.".".$3/e;
> print $formatted_date;
> 
> Bei mir hat dieser Schnipsel funktioniert.
> Ich habe %d statt %e verwendet, da %e anscheinend mit ActivePerl
> unter 
> Windows nicht funktioniert.

Ich baue es mal ein und probiere es.

Einen schoenen Abend,

Heinz.

-- 

http://www.pahlke-online.de/reisenews/
http://www.Pahlke-KunstWebDesign.de/

-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.