in reply to Re^7: Data manipulation on a file
in thread Data manipulation on a file

No, you run it on the array. The argument to uniq is an array or list, not a string.

In your script it will be $outputstring .= "$filer:" . (join ' :', uniq sort @{$filer_hash{$filer}}) . ','; (untested)

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics