[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Perl script 4->5 checker



>Does anyone know of / have access to a Perl script that will scan another
>script (written for Perl 4) and report back on anything that could be a
>problem with Perl 5.
>
>(Yes, I know I can probably write one, but I'd rather leverage what someone
>else has done; I'm being lazy).
>
>Basically, it has to take note of things such as
>   use of the single tick mark (now :: is preferred)
>   use of dbmopen, dbmclose (no longer in vogue)
>   use of keywords added in Perl 5 that weren't keywords before (e.g. my)
>
>   what else?

the one that catches me most is not escaping @'s in email addresses in
interpolated strings.
eg print "bigiain@mightymedia.com.au"; instead of print
"bigiain\@mightymedia.com.au";
(or print 'bigiain@mightymedia.com.au';)


>
>Vicki Brown - vlb@cfcl.com

(wasn't that @apple.com a while back?)

cheers

iain