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

Thanks this looks really cool and straight forward. Should I just run this on the output string that has been dumped from the hash of arrays. wow you guys are great, perl is getting cool

Replies are listed 'Best First'.
Re^8: Data manipulation on a file
by CountZero (Bishop) on Oct 02, 2015 at 21:41 UTC
    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