pub struct PerlModernizer { /* private fields */ }Expand description
Analyzer and transformer for modernizing Perl code.
Detects legacy Perl idioms and suggests modern replacements,
such as replacing bareword filehandles with lexical variables
or adding missing use strict and use warnings pragmas.
Implementations§
Source§impl PerlModernizer
impl PerlModernizer
Sourcepub fn analyze(&self, code: &str) -> Vec<ModernizationSuggestion>
pub fn analyze(&self, code: &str) -> Vec<ModernizationSuggestion>
Analyzes Perl source code and returns modernization suggestions.
Checks for missing pragmas, bareword filehandles, deprecated patterns, indirect object notation, and other legacy idioms.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PerlModernizer
impl RefUnwindSafe for PerlModernizer
impl Send for PerlModernizer
impl Sync for PerlModernizer
impl Unpin for PerlModernizer
impl UnsafeUnpin for PerlModernizer
impl UnwindSafe for PerlModernizer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more