in reply to how to run perl file in linux

See http://learn.perl.org/first_steps/, or ensure that the file is executable:

chmod +x cpg4.pl

Replies are listed 'Best First'.
Re^2: how to run perl file in linux
by Monk::Thomas (Friar) on May 13, 2014 at 11:47 UTC

    (Just in case the OP is new to UNIX/Linux.)

    ... and execute the file via './cpg4.pl' instead of just 'cpg4.pl'.