parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

External Dependency?


From: Larry Ploetz
Subject: External Dependency?
Date: Wed, 3 Apr 2019 12:34:21 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:67.0) Gecko/20100101 Thunderbird/67.0

Pulled an example right out of the man page but it didn't work :(

I think there's a Perl module it depends on that isn't part of the base Perl install.

LarryPloetz-MBP:~ larry$ (echo '"Start of field 1 with newline'
>  echo 'Line 2 in field 1";value 2') |
>   parallel --csv --colsep ';' echo Field 1: {1} Field 2: {2}
Can't locate object method "new" via package "Text::CSV" (perhaps you forgot to load "Text::CSV"?) at /Users/larry/bin/parallel line 1373.

After cpan installing Text::CSV this example works as expected

LarryPloetz-MBP:~ larry$ (echo '"Start of field 1 with newline'
>  echo 'Line 2 in field 1";value 2') |
>   parallel --csv --colsep ';' echo Field 1: {1} Field 2: {2}
Field 1: Start of field 1 with newline
Line 2 in field 1 Field 2: value 2

Not sure what the philosophy on external dependencies is.

¬ Larry


reply via email to

[Prev in Thread] Current Thread [Next in Thread]