PHP vs Perl in CLI

Discussion in 'Programming' started by Kaizoku, Dec 11, 2007.

  1. #1
    Hi, which is better for CLI (Command Line Interface)?
     
    Kaizoku, Dec 11, 2007 IP
  2. NoobieDoobieDo

    NoobieDoobieDo Peon

    Messages:
    1,456
    Likes Received:
    53
    Best Answers:
    0
    Trophy Points:
    0
    #2
    IMHO Perl.
     
    NoobieDoobieDo, Dec 11, 2007 IP
  3. NetStar

    NetStar Notable Member

    Messages:
    2,471
    Likes Received:
    541
    Best Answers:
    21
    Trophy Points:
    245
    #3
    To me it doesn't make sense to use PHP from the command line. Mainly because it was never designed to be a shell utility.
     
    NetStar, Dec 13, 2007 IP
  4. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #4
    I compiled php as cgi, so it can be use from shell. Since it can now do STDIN and STDOUT.
     
    Kaizoku, Dec 16, 2007 IP
  5. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You'll find Perl is more heavily used for command line utilities. Whether that means it's better though could be a matter of opinion.
     
    InFloW, Dec 16, 2007 IP