Is there a tool for extracting all variable, module, and function names from a Perl module file?


dlock13
HOME ยป Programming Languages

My apologies if this is a duplicate; I may not know the proper terms to search for.


I am tasked with analyzing a Perl module file (.pm) that is a fragment of a larger application. Is there a tool, app, or script that will simply go through the code and pull out all the variable names, module names, and function calls? Even better would be something that would identify whether it was declared within this file or is something external.


Does such a tool exist? I only get the one file, so this isn't something I can execute -- just some basic static analysis I guess.


Related to : Is there a tool for extracting all variable, module, and function names from a Perl module file?
Is there a tool for extracting all variable, module, and function names from a Perl module file?
by dlock13 in Programming Languages

My apologies if this is a duplicate; I may not know the proper terms to search for.


I am tasked with analyzing a Perl module file (.pm) that is a fragment of a larger application. Is there a tool, app, or script that will simply go through the code and pull out all the variable names,


How to include a file that contains all the required Perl module names?
by Ernie in Programming Languages

The perl scripts contain all the module names in the beginning of the script.


Ex:


use strict;
use XML::Parser;
use XML::Simple;
use DBI;
use DBD::DB2::Constants;
use POSIX qw( strftime );
use Storable qw(dclone);
use Data::Dumper;
TAGS: include file that contains required Perl
Can perl Config::Simple module with properties file with variable assignment
by Lithuania in Programming Languages

Can Config::Simple work with properties file with variable assignment, e.g.:


server_name=myapp.com
home_url=${server_name}/home/index.html
login_url=${server_name}/login/

how to change a variable from a module inside a module in a module… (confused)
by Murali Ravipudi in Programming Languages

I have a variable in my main module which is changed using another module, but I want to change the variable from my main module through another module. I'm new to programmering, so I actually don't really know how to explain this stuff - sorry if I'm asking a stupid question.


The pro


How to call same subroutine from Perl module in different ways? What is Perl Module “Default mode”?
by keithosu in Programming Languages

I've written a perl module (say foo), with one primary subroutine (say f()), which I want to use in two ways:


Import module foo , then call the sub f(...) from the script importing module foo.
Just import module
How to get module variable in function from another module?
by Idontcare in Programming Languages

I'd like to define a helper function that has the ability to modify a module-level variable (with known name) from surrounding context without explicitly passing it, e.g.


# mod1.py
mod_var = 1
modify_var()
# mod_var modified
print mod_var

Th


How to install a module in local linux machine, to use that module in a perl program
by Yserbius in Programming Languages

Iam new to Perl....
I've the "Win32-GUI-1.05.tar" file & extracted "Win32-GUI-1.05" folder in my home dir.
~/mime/Win32-GUI-1.05.tar
~/mime/Win32-GUI-1.05
:confused: When Iam trying to use this module, Iam getting below error message. Iam using Win32 modul
How can I use a variable as a module name in Perl?
by Aravinth in Programming Languages

I know it is possible to use a variable as a variable name for package variables in Perl. I would like to use the contents of a variable as a module name. For instance:


package Foo;
our @names =("blah1", "blah2");
1;

And in another file I want to be


How do I create Perl module templates for more than one module in the same namespace?
by CookingCoder in Programming Languages

I use h2xs and Module::Starter to create templates for my Perl modules. All these and others like Module::Build are great for creating one-off modules. Unfortunately, I have not been able to figure out a "clean" way of creating a family of related modules and their documentation and


Converting a perl module to a python module would it be worth it?
by timswim78 in Programming Languages

Hi All,
I am the current author of the Astro-Sunrise perl module
http://search.cpan.org/~rkhill/Astro....91/Sunrise.pm
and was wondering if it would be worth while to convert it to python.
First off, I have never programmed in python. I would like to use
this project to lea


HD Wallpapers
3D
3D Abstract
City
Celebrities
Indian Celebrities
Cars
Travel
Girls
Animals Birds
Movies
Sports
Black White
Nature
Planes
Anime
Food Drink
Dreamy Fantasy
Architecture
Games
Space
Holidays
Flowers
Love
Artistic
Baby
Beach
Bikes Motorcycles
Macro
Computers
Vector
Funny
Army
Textures
Brands
Misc
Music
Other
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .