> > Is it possible to return elements 2 (index 1) thru end of the results of a > > split? > > > > @myarray = (split(/\s+/,$fContent[$i]))[1..-1]; > > > > seems right, but doesn't work...
It seems right to me too, however, I bet you are getting an array out of bounds problem. First line is blank, and the split gives[1]: @myarray = ('')[1..-1]; where obviously there isn't an element 1. This should fail. You don't say whether you get a compile time or runtime error. [1] - Too lazy to double check documentation, make sure you do. > Id probably just use: > > @myarray = split(/\s+/,$fContent[$i]); > shift( @myarray ); > > that will remove the unwanted element of the array for you. After the shift() you lose information on whether you received a blank line or one with leading data. Make sure you check for as much as you can, you'll thank yourself later when it barfs on incorrect data with a helpful error message instead of silent corruption. Jonathan Paton ===== $_=q|.,&@$$. ,.@$&@$. .&$$@. ,,$ ....!$_=$p.'&$@.',y'&$@' .,';for(/\S+/g){ !|.q| .$ .,@, ,$, .,.. @, ,$ ,,@ .,,.!++$.<22?${'y'.$_}=chr$.+64:[$$=${'y' !|.q| ,@$@&.,. $$$&, ..@&&$,,, $., ..!.$_},$y.=($.=~/22\|26\|3(3\|7)/x?' ' !|.q|. @ ., ,.&,,, , .$..&. .,$ .,,!.$$:"\l$$")]};$y=~/ (.*)/;warn"$1\n" !|.q|. $ .,. .,$$&&$...&., @.,.&@$@ .|,map{-$|--?$r:$p.=$_}split'!';eval$r __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]