• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Perl regular expr tsp
 

Perl regular expr tsp

on

  • 898 views

 

Statistics

Views

Total Views
898
Views on SlideShare
845
Embed Views
53

Actions

Likes
0
Downloads
1
Comments
0

4 Embeds 53

http://pradeepkumar.org 37
http://www.pradeepkumar.org 10
http://www.tcbin.com 5
http://orhowilearnedtolovetheperl.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Perl regular expr tsp Perl regular expr tsp Presentation Transcript

    • Perl
    • Perl Regular Expressions
    • Perl Regular Expressions
    • Perl Regular Expressions
    • Perl Regular Expressions
    • Perl Regular Expressions
    • Perl Regular Expressions
    • Perl Regular Expressions
      Pattern Matching Modifiers
      /g – match all occurrences
      /i– Do case-insensitive pattern matching
      /m – Treat string as multiple lines.
      /o – compile pattern only once
      /s - Treat string as single line
      Let . Match a new line
      /x –Use extended regular expressions
      Ignore most white space and permits comments in pattern
      Mostly used in the above is /g and /i only
    • Perl Files
      Open a file
      Open (DATA, “<numbers.dat”);
      Close a file
      Close DATA
      Print to a file
      Print DATA “Hello Welcome”;
      Here DATA is the file handle,
      < - indicates File Read
      > - indicates File Write and >> indicates file Append