Scripts and Utilities -- Perl lecture links


  • Jim Plank
  • Directory: /home/cs494/notes/Perl
  • This file: http://www.cs.utk.edu/~plank/plank/classes/cs494/494/notes/Perl/links.html
  • The lecture notes: http://www.cs.utk.edu/~plank/plank/classes/cs494/494/notes/Perl/lecture.html

    setup


    Simple perl programs

    hw.perl
    perl hw.perl
    
    simp.perl
    perl simp.perl
    

    Scalar Variables

    scalar.perl
    perl scalar.perl
    

    Standard input, files

    stdin.perl
    input
    perl stdin.perl < input
    
    catinput.perl
    perl catinput.perl
    cat input
    cat output
    

    Arrays

    sort1.perl
    perl sort1.perl < input
    
    sort2.perl
    perl sort2.perl < input
    
    reverse.perl
    revline.perl
    input2
    perl reverse.perl < input2
    perl revline.perl < input2
    
    reverse2.perl
    revline2.perl
    perl reverse2.perl < input2
    perl revline2.perl < input2
    

    Arrays

    phone.perl
    input3
    perl phone.perl < input3
    

    Listing Files

    ls.perl
    perl ls.perl
    

    Fancy String Stuff

    match.perl
    perl match.perl
    

    Regular Expression Substitution

    sub1.perl
    perl sub1.perl
    
    sub2.perl
    perl sub2.perl