Pablo Fischer wrote: > > Hi! Hello,
> I have a string (its an array, the array has the values that $ftp->ls("dir) > returns), so $array[1] contains this: > -rw-r--r-- 1 pablo pablo 18944 Jul 16 21:14 File28903.zip > > What I would like to do is: get the date (Jul 16), the time (12:14) and the > FileName, each one if a different array, like.. Does $ftp->mdtm( $fname ) not work? > my ($date, $time, $fname) = $array[1]; > > I know that I could to it with split, I solved the problem with > > split(" ",$array[1]); > > However I would like to know if I can separeate the original string into > columns, so I could access the values like: > > $date = $col[6]+$col[7]; > $time = $col[8]; > $fname = $col[9]; my ( $date, $time, $fname ) = unpack 'x42 A6 x A5 x A*', $array[ 1 ]; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]