jump to:allmastodonblueskylemmylobstersdevstackwikirsshn
wwebbit
view: | | |

Front page / everything · hot matching “perl”

2 shown · updated 11s ago · read only
  1. Why does "try" not cause an undefined subroutine error? (stackoverflow.com)stack

    10 points by w.k in stackoverflow.com · 7y ago · stack

    A couple of times I've ran into the situation where I've forgotten to load the Try::Tiny module in my script and I've still used its try-catch block, like this: #!/usr/bin/env perl use strict; use warnings; try { call_a( 'x' ); } catch { die "ACTUALLY die $_"; }; sub call_a { di…
    filed under perl
  2. Unix/Perl/Python: substitute list on big data set (stackoverflow.com)stack

    9 points by Subbeh in stackoverflow.com · 7y ago · stack

    I've got a mapping file of about 13491 key/value pairs which I need to use to replace the key with the value in a data set of about 500000 lines divided over 25 different files. Example mapping: value1,value2 Example input: field1,field2,**value1**,field4 Example output: field1,…