RE: [Perl-unix-users] Join Question

2002-11-01 Thread Scott Purcell
Hello Terry, I think you could use the sprintf function. The pattern %2d ensures that each element from the array is two digits using 0 as the pad. With the following I ended up with 120307 which shows me that it is padding each array element with 2digits. I think this may get you off into a goo

RE: [Perl-unix-users] getting putput of ping command into file

2003-01-15 Thread Scott Purcell
uot;; open (PING, "$cmd |") or die("Problem somewhere. $!"); my @pings = ; close PING; foreach (@pings) { print; } Scott Purcell -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 4:02 PM To: Perl-Unix-Users Subject