08-28-2009
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Trying to alias rm to move files to a hidden trash directory in the bash shell. I've tried to create this alias numberous ways and it's just not working. Here's what I've tried, anyone have any suggestions.
alias rm='mv $* ~/.trash'
alias rm= 'mv$* ~/.trash'
things like that... I've also... (2 Replies)
Discussion started by: strmy_ngts
2 Replies
2. Shell Programming and Scripting
Hi All,
I am using a perl module Win32::AdminMisc in my perl script.
When i running in activestate perl v5.10.0 it shows folling error ---
Can't locate loadable object for module Win32::AdminMisc in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at example.pl
Please reply.
... (7 Replies)
Discussion started by: suprcool
7 Replies
3. Linux
Hi all,
I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/.
I need to know if I can... (0 Replies)
Discussion started by: anitemp
0 Replies
4. IP Networking
Hi All,
I need to develop a kernel module which changes the IP address of a package according to its mac address. It would be a sort of L2 Nat.
Somebody know if I can do this using netfilter??
Thanks. (2 Replies)
Discussion started by: lagigliaivan
2 Replies
5. Shell Programming and Scripting
I dont know if this is a dumb question, but I am unable to move ahead and need help -
There is a perl module called Header.pm which was written by someone else. I am trying to write a simple perl script which uses a function provided by the module. The function has been exported by the module... (9 Replies)
Discussion started by: NewDeb
9 Replies
6. AIX
Had a bizzare problem last night with one of our tools running on an AIX server that has not come up before. The tool has been in use for over a year without this problem showing up.The tool basically does this: -Kick off a background task and record the PIDGo and do a bunch of other taskswait for... (4 Replies)
Discussion started by: steadyonabix
4 Replies
7. Shell Programming and Scripting
Hi,
I need to read an excel binary file and write the data to a text file. Is it possible using Spreadsheet-ParseExcel-0.58 ? If not, is there any module available in CPAN to do this?
Thanks,
Js (1 Reply)
Discussion started by: jisha
1 Replies
8. Red Hat
Hello friends
Today i have changed my passwd policy for strong password
Everything is working correctly but when i changed my password , it did not ask me my old password
my /etc/pam.d/system-auth file is (only passwdqc.so module line)
password required pam_passwdqc.so retry=3... (0 Replies)
Discussion started by: rink
0 Replies
9. Web Development
Hello everyone...I am very new to UNIX hence needs your help in below.
i have written a script to change some configuration in property files and its working fine.but to reflect that change at the application i want to recycle WAS and ihs.i.e. run below start and stop commands at /usr/local/bin ... (2 Replies)
Discussion started by: Sanaa
2 Replies
10. AIX
How can I log the auth and security module messages in AIX syslog ? I need to see all authentication requests coming (when users login) and the calls made for authenticating these users.
Target system is AIX 6.1 (1 Reply)
Discussion started by: vs1
1 Replies
LEARN ABOUT DEBIAN
module::load
Module::Load(3perl) Perl Programmers Reference Guide Module::Load(3perl)
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.pm" first in @INC and if that
fails, we will try to find "file" 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.14.2 2011-09-26 Module::Load(3perl)