in reply to Re: Formatting with sprintf
in thread Formatting with sprintf

I got a syntax error on the my @CC... line and not smart enough to find where; Would you like a ride in my Citabria?

Replies are listed 'Best First'.
Re^3: Formatting with sprintf
by kennethk (Abbot) on Nov 10, 2015 at 01:13 UTC
    What version of perl are you running? \K was introduced to regular expressions in v5.10.0.

    #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Re^3: Formatting with sprintf
by Anonymous Monk on Nov 10, 2015 at 01:22 UTC

    Old perl ?

    my $CCformatted = join '-', $card =~ /..../g;

    Most of my PP hours were in Citabria's, but that was 41? years ago :)