At 17:09 -0700 10/14/10, jtk wrote:
>Thanks for all the replies, and for reminding me that I'm a complete
>dinosaur for still programming in Fortran ;^>. Obviously Doug you
>haven't had to program in Fortran 90/95. Official form for
>continuations is to put an ampersand in col. 73 of the first line and
>another one in col. 6 of the continuation line. The second part is
>what's always been done, but the col. 73 bit is a royal PITA.  If
>there are a variable number of existing characters in each line, which
>is the case here since I am editing existing code, I am not sure
>John's script will work. Luckily I am just doing this in a short code
>so it won't kill me to edit by hand, but I was hoping for a better
>solution for future occasions when I have to update more massive
>programs.
>

I smell a perl script as a preprocessor before compiling.

You just forget about the stuff in column 73 and use perl to delay a line and 
add the & in 73 to a card that comes before a card with something in column 6.

You could also get creative with tab characters that would be removed and 
replaced with spaces in the perl script.

Come to think of it, you could do that in FORTRAN.

And, you're right. The last FORTRAN code I created was used on the HEAO 
spacecraft launched in 1975.

It's possible to run a perl script on an open but saved file in BBEdit. BBEdit 
will take note of changes made on the copy in memory and reload the revised 
image. You might also just pipe the deck through the perl script as a line in 
your make files.

-- 
--> Give me liberty or give me Obamacare <--

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to