This will receive the argument passed when the object creation and associate this to that class, when you bless.
'my' variables are not accessible unless you blessed to your object or make that variable to 'our'. But 'our' variables exist through out the program and occupy some memory space.
So, If you want you program to be more optimized, you should return the objects(variables/hash/array) from you function to the main program and use from there.
All
Please help me to call url in Perl. Ex:
http://www.test.com/dynf?urn=123
Assume it will return success if 123 is in urn or it will return " failed".
I want store this return type in a variable.
Please help me to call the URL through PERL.
Thanx in advance
Regards
Deepak (1 Reply)
Hi all,
Not sure if this is the right forum to post query regarding perl script.
I have a perl script which internally calls a shell script. My problem is that the shell script should be passed command line arguments.
I call a shell script from perl using:
system("sript.sh");
How do... (3 Replies)
Hi,
I would like to invoke "Winzip" utility from a perl script, input the name of zip file and provide output path for unzipped files. Any pointers will be appreciated.
Thanks (5 Replies)
Hi,
I am trying to execute a perl script from c program.
I tried using system command.
system("perl test.pl filename") ;
This perl program takes filename as input and prints a number
to screen.
I need to get that returned number in C program.
system command is... (3 Replies)
Hi ,
Here is my piece of code--
main();
sub main
{
$result = GetOptions ("LogDir=s" => \$LogDir,
"Summary" => \$Summary,
"Indiviual=s" => \$Individual ,
"Diagnostics=s" => \$Diagnostics,
... (1 Reply)
On bash I run precompiled c Program as follows:
./create_cust 1 10000 US S > us_cust.csv
create_cust is a c program and requires 4 parameters.
I am redirecting the output of this program to csv file
I need to run this same program in perl
I am aware of exec command though not... (7 Replies)
hi all,
I have 3 perl scripts a.pl,b.pl and c.pl
each of these work when i pass a date for eg: perl c.pl 2010-05-27
now i want to write a perl script that would call the 3 scripts and make it run all the 3 scripts (a.pl,b.pl,c.pl) parallelly rather than 1 after the other.......
pls... (2 Replies)
All,
Is it possible to call a subroutine from the perl expect module after logging to a system that is within the same program. My situation is I need to run a logic inside a machine that I'm logging in using the expect module, the logic is also available in the same expect program.
Thanks,... (5 Replies)
Can anyone break down the different methods of using SSH in perl? I'm currently using Net::SSH::Expect, which allows me to login to a machine and execute multiple commands without having to ssh again. This feature of holding the session works well for me, but it's slow. If I set timeouts to 4... (3 Replies)
Note: Not a programmer by profession but occasionally have to program.
I am looking for general methods and freely/readily available tools employed to debug problems during development of perl scripts. Anything that has really helped you out with problems you just couldn't find.
A couple of... (5 Replies)
Discussion started by: Vi-Curious
5 Replies
LEARN ABOUT DEBIAN
padre::perl
Padre::Perl(3pm) User Contributed Perl Documentation Padre::Perl(3pm)NAME
Padre::Perl - A more nuanced "Where is Perl" module than Probe::Perl
DESCRIPTION
Even though it has only had a single release, Probe::Perl is the "best practice" method for finding the current Perl interpreter, so that
we can make a system call to a new instance of the same Perl environment.
However, during the development of Padre we have found the feature set of Probe::Perl to be insufficient.
"Padre::Perl" is an experimental attempt to improve on Probe::Perl and support a wider range of situations. The implementation is being
contained to the Padre project until we have competently "solved" all of the problems that we care about.
GUI vs Command Line
On some operating systems, different Perl binaries need to be called based on whether the process will be executing in a graphical
environment versus a command line environment.
On Microsoft Windows perl.exe is the command line Perl binary and wperl.exe is the windowing Perl binary.
On Mac OS X (Darwin) perl.exe is the command line Perl binary and wxPerl.exe is a wxWidgets-specific Perl binary.
PAR Support
PAR executables do not typically support re-invocation, and implementations that do are only a recent invention, and do not support the
normal Perl flags.
Once implemented, we may try to implement support for them here as well.
FUNCTIONS
"perl"
The "perl" function is equivalent to (and passes through to) the "find_perl_interpreter" method of Probe::Perl.
It should be used when you simply need the "current" Perl executable and don't have any special needs. The other functions should only be
used once you understand your needs in more detail.
Returns the location of current perl executable, or "undef" if it cannot be found.
"cperl"
The "cperl" function is a Perl executable location function that specifically tries to find a command line Perl. In some situations you may
critically need a command line Perl so that proper "STDIN", "STDOUT" and "STDERR" handles are available.
Returns a path to a command line Perl, or "undef" if one cannot be found.
"wxperl"
The "wxperl" function is a Perl executable location function that specifically tries to find a windowing Perl for running wxWidgets
applications. In some situations you may critically need a wxWidgets Perl so that a command line box is not show (Windows) or so that Wx
starts up properly at all (Mac OS X).
Returns a path to a Perl suitable for the execution of Wx-based applications, or "undef" if one cannot be found.
COPYRIGHT & LICENSE
Copyright 2008-2012 The Padre development team as listed in Padre.pm.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.14.2 2012-06-27 Padre::Perl(3pm)