CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [Stefanik] Match string in multi-line file: Edit Log



Chris Charley
User

Jan 3, 2013, 3:43 PM


Views: 1938
Re: [Stefanik] Match string in multi-line file

Try changing this line

my $value1 = $2 if $FileTemp =~ /^(TRANSID),(\w+)/;

to

my $value1;
$value1 = $2 if $FileTemp =~ /^(TRANSID),(\w+)/m;



(This post was edited by Chris Charley on Jan 3, 2013, 3:45 PM)


Edit Log:
Post edited by Chris Charley (User) on Jan 3, 2013, 3:45 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives