10 More Discussions You Might Find Interesting
1. Programming
I have reviewed many examples on-line about running another process (either PERL or shell command or a program), but do not find any usefull for my needs way. (Reviewed and not useful the system(), 'back ticks', exec() and open())
I would like to run another PERL-script from first one, not... (1 Reply)
Discussion started by: alex_5161
1 Replies
2. UNIX for Advanced & Expert Users
I am trying to export windows display to my unix SunOS
I have Windows server 2000 which has X-Win32 v6 installed.
I start X-Win32. I then go to configure session with the following details.
1. host name: myhost
2. command: xterm -ls
3 username: user1
4 password: password
Then i right... (1 Reply)
Discussion started by: mohtashims
1 Replies
3. Windows & DOS: Issues & Discussions
Hi All, How are you Guys?
I am using the Code
use Win32::IEAutomation;
# Creating new instance of Internet Explorer
my $ie = Win32::IEAutomation->new( visible => 1, maximize => 1);
# Site navigation
$ie->gotoURL('http://www.google.com');... (4 Replies)
Discussion started by: adisky123
4 Replies
4. Shell Programming and Scripting
Hello Gurus,
I am begginer in perl. I would like to ask several questions, some related to perl and its syntax but most will be regarding to WIN32 OLE. My main goal is to develop script that will check word document structure (return some information) and make some changes in this document (if it... (0 Replies)
Discussion started by: wakatana
0 Replies
5. Shell Programming and Scripting
I am trying to insert a picture into a worksheet in Excel using Perl the following is the code
use Win32::OLE;
use Win32::OLE::Const "Microsoft Excel";
use Win32::OLE qw(in with);
# Initiate Excel application
$Excel = Win32::OLE->new('Excel.Application', 'Quit');
$Excel->{Visible} =1;
#... (1 Reply)
Discussion started by: cold_Que
1 Replies
6. Shell Programming and Scripting
Hi folks,
what is the command used to click on the 'x' button of popup browser window in perl windows.I am using WIN32::IEAutomation module.
Please any one can help on this.... (3 Replies)
Discussion started by: jyo123.jyothi
3 Replies
7. Shell Programming and Scripting
Is there a book available that goes into the PERL WIN32 module in depth ?
I like the Unix in a nutshell or Perl Black Book by Holzner way of teaching. Teach by example.
Anyone ?
Thanks
Popeye, Olive and sweetpea :p (1 Reply)
Discussion started by: popeye
1 Replies
8. Windows & DOS: Issues & Discussions
Dear,
Did anybody knnow how to run the Perl script or whatever mean for testing the script in Windows? (1 Reply)
Discussion started by: Paris Heng
1 Replies
9. Shell Programming and Scripting
Hi,
I am using Win32::IEAutomation module to automate my Web based application.
I am trying to prepare a report for the test cases I automated.
The problem is I am unable to get the execution status of the commands gotoURL, getButton .... to know if my button click or url redirection is... (2 Replies)
Discussion started by: gurukottur
2 Replies
10. Shell Programming and Scripting
Hi friends,
I am using win32::ieautomation to automate portal
Please help me with below line of code:
my $target_cell = $table_object->tableCells(2, 5);
what is $table_object in above line
I am using $browser->getTable('id:', "table_id")->tableCells(2,5);
The error I get is can't... (0 Replies)
Discussion started by: gurukottur
0 Replies
Module::Load(3pm) Perl Programmers Reference Guide Module::Load(3pm)
NAME
Module::Load - runtime require of both modules and files
SYNOPSIS
use Module::Load;
my $module = 'Data:Dumper';
load Data::Dumper; # loads that module
load 'Data::Dumper'; # ditto
load $module # tritto
my $script = 'some/script.pl'
load $script;
load 'some/script.pl'; # use quotes because of punctuations
load thing; # try 'thing' first, then 'thing.pm'
load CGI, ':standard' # like 'use CGI qw[:standard]'
DESCRIPTION
"load" eliminates the need to know whether you are trying to require either a file or a module.
If you consult "perldoc -f require" you will see that "require" will behave differently when given a bareword or a string.
In the case of a string, "require" assumes you are wanting to load a file. But in the case of a bareword, it assumes you mean a module.
This gives nasty overhead when you are trying to dynamically require modules at runtime, since you will need to change the module notation
("Acme::Comment") to a file notation fitting the particular platform you are on.
"load" eliminates the need for this overhead and will just DWYM.
Rules
"load" has the following rules to decide what it thinks you want:
o If the argument has any characters in it other than those matching "w", ":" or "'", it must be a file
o If the argument matches only "[w:']", it must be a module
o If the argument matches only "w", it could either be a module or a file. We will try to find "file" first in @INC and if that fails,
we will try to find "file.pm" in @INC. If both fail, we die with the respective error messages.
Caveats
Because of a bug in perl (#19213), at least in version 5.6.1, we have to hardcode the path separator for a require on Win32 to be "/", like
on Unix rather than the Win32 "". Otherwise perl will not read its own %INC accurately double load files if they are required again, or in
the worst case, core dump.
"Module::Load" cannot do implicit imports, only explicit imports. (in other words, you always have to specify explicitly what you wish to
import from a module, even if the functions are in that modules' @EXPORT)
ACKNOWLEDGEMENTS
Thanks to Jonas B. Nielsen for making explicit imports work.
BUG REPORTS
Please report bugs or other issues to <bug-module-load@rt.cpan.org<gt>.
AUTHOR
This module by Jos Boumans <kane@cpan.org>.
COPYRIGHT
This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.
perl v5.12.1 2010-04-26 Module::Load(3pm)