So what exactly you want ? how about my @result = ($1, $2, $3) if ( $filename =~ /^(w{1})(w{4})(d{6})\.txt/ )
Is that what you want ? Smiley Connie =) ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 02, 2002 3:23 PM Subject: extract info from file name > Hi > > 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 > > Steve > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]