HPUX Syntax error at line 9 : `<' is not expected

Hi All,
i'm getting this error,
can somebody check?

file name is like this

951957039339019_560119_000523_2w47_3060_0038_6002.log
    filename=$(basename "$1")
                extension="${filename##*.}"
                filename="${filename%.*}"

                IFS="_" read -r -a array << "$filename"

                nFields=0
                for element in "${array[@]}"

i need to spilt all the numbers.

Thanks in advance.

Unfortunately, I don't have a clue of what you want to achieve, and neither is a line 9 around in your code snippet nor a single "<" sign.
A guess would be that it doesn't like that "<<" which, in recent shells, is a "here document" introducer, and you didn't follow the syntax therefor.

Please explain what you want to do, an give the full code so error messages will become more meaningful, helping us to help you.

My guess is that you've included a code snippet and the line number of the error message doesn't correspond.

consider:

IFS="_." read -r -a array << EOF
$filename
EOF

Notice I added "dot" to your list of IFS chars.