Windows Perl Scripting Forums » Perl

Find strings

(1 post)
  • Started 6 years ago by

No tags yet.


  1. Anonymous

    I'm about to go crazy!
    i need help, i am codeing a small perl program but got a problem.

    This is sample text.txt file --

    </p>
    <p>Beginning Perl is a different kind of Perl book. It's written particularly with the beginning programmer in mind,<br />
    but it doesn't treat you like an idiot, and experienced programmers will not feel patronized.<br />
    It covers a lot of ground, from the very basics of programming, right through to developing CGI applications<br />
    for the web. More importantly, it emphasizes good Perl practice, and readable and maintainable code. </p>
    <p>

    This is sample perl script code

    </p>
    <p>open F, "<text.txt";<br />
    while (<F>){<br />
    print "Result : $1 " if($_ =~ m/particularly(.*)/);<br />
    }</p>
    <p>

    runing and result
    Result : with the beginning programmer in mind,

    but there is was a problem. i am writing this result in dos:

    with the beginning programmer in mind,
    but it doesn't treat you like an idiot, and experienced programmers will not feel patronized.
    It covers a lot of ground, from the very basics of programming, right through to developing CGI applications
    for the web. More importantly, it emphasizes good Perl practice, and readable and maintainable code.

    How do I do this?

    Posted 6 years ago #

RSS feed for this topic

Reply

You must log in to post.