Re: Substitute Variably hort string into long string at Right Justified possition

2008-04-17 Thread Paul Nickerson
Gah, they're both so simple! And they both work :) Time to kick myself twice... Well, I never knew sprintf had a pad with zero's thing, and forgot that it even had pad with spaces. And I didn't know Perl could iterate a string like that. It seems intelligent (like AI kind of intelligent), but dang

Substitute Variably hort string into long string at Right Justified possition

2008-04-17 Thread Paul Nickerson
In short, I'm looking to do this: integer 4 -> string dbt0004sfg, and integer 287 -> string dbt0287sfg. And now in long, I want to iterate through creating strings to print the bellow: dbt0001sfg dbt0002sfg ... dbt0034sfg ... dbt2601sfg ... I think what I'm looking for is a regular expression to