Thread Dateinamen mit führenden Nullen erzeugen
(3 answers)
Opened by mark05 at 2013-05-16 07:54
klar, wenn feststeht, dass $index eine Ganzzahl ist:
sub _getfile { return sprintf("%05d.ts", shift) } edit: Extension noch in den Format-String getan Last edited: 2013-05-16 08:15:39 +0200 (CEST) Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it? -- Brian Kernighan: "The Elements of Programming Style"
|