Steven Massey wrote: > > Hi Hello,
> filename Rnott230602.txt > > I want to break down the name and compare with other text, it breaks down > as R / nott / 230602 (3 items) > the length does not change. > > Now I know I can split() each char and combine into a string > > Is there a smarter way ??? > > Any thoughts greatly appreciated If the length is always the same you could use unpack. my ( $type, $name, $number ) = unpack 'a a4 a6', $filename; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]