in reply to Re: My first perl script is working, what did I do wrong?
in thread My first perl script is working, what did I do wrong?
Thanks for the reply, it actually looks like Perl!
A couple quick questions on this:
1) Are both 'use 5.12.00' and 'use strict' necessary? From what I read, 'use 5.12.00' implies 'use strict'.
2) With the following line, I'm having a bit of difficulty understanding it.
1) Are both 'use 5.12.00' and 'use strict' necessary? From what I read, 'use 5.12.00' implies 'use strict'.
2) With the following line, I'm having a bit of difficulty understanding it.
Is it essentially this?:$re .= qr/(?<$_>$_\s*)/ for @fields;
for my $field (@fields) $re=$re.qr/(?<$_>$_\s*)/
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: My first perl script is working, what did I do wrong?
by rjt (Curate) on Nov 09, 2012 at 01:23 UTC |
In Section
Seekers of Perl Wisdom