Hi Jing, On Sat, 28 Sep 2013 16:53:20 +0800 Logust Yu <logus...@googlemail.com> wrote:
> Hi Rajeev, > I guess you can use printf to print them into strings, and then replace the > spaces with underscores. > The problem with using sprintf and a replace operation like that, like you suggest is that it won't handle trailing spaces in the strings properly. E.g: 1. "hello" ==> "hello___" . 2. "hello " ==> "hello___" . I'm not sure whether this is an issue, but in any case, I believe the function I demonstrated would be easier. Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ The Case for File Swapping - http://shlom.in/file-swap “We’re not doing it for money… we’re doing it for a shitload of money!” — Spaceballs, http://www.imdb.com/title/tt0094012/ Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/