in reply to Re^4: Perl script help to convert .txt file to .csv
in thread Perl script help to convert .txt file to .csv
BEGIN { $/ = ">"; $\ = "\n"; }
In other words, more or less what you thought, "define the boundaries" of what your script will eventually see as a single-section's-worth-of-data. But, "<" is the less_than symbol, not a "carat" (nor "carrot" nor even what you probably intended, "caret").
... etcetera.But most of the answers to your questions/guesses are available at your own terminal (or should be):
perldoc perlvar (special vars)
perldoc -f next
perldoc -f join
And you'll also find scads of help in the Tutorials section or by using Super Search or Dave Cross's specialized Perl Search (which, thanks to some rather neat hacks, outdoes big G when searching for punctuation-laden expressions).
|
|---|