#!/usr/local/bin/perl -w
use strict;
my $format="%s%d%s%d";
my @args=("stuff",0,"-",0);
$args[1]=2;
$args[3]=10;
print "NEWNAME -> ",sprintf $format,@args;
Simple.
metadoktor
"The doktor is in."
In reply to Re: dynamic string format?
by metadoktor
in thread dynamic string format?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |