in reply to Splitting a String

@array=split/\|/,$str;

You have to backslash it because it is used in regular expressions as a logical or.

NOTE:This could have been found out by using the tutorials, super search or just looking through the archives...

Tiptoeing up to a Perl hacker.
Dave AKA damian