09-19-2017
Seriously, guard your tongue! Insulting or attacking people in these fora is highly deprecated and will lead to a ban before long.
Yes, beginners are welcome here as you can see in umpteen threads dealing with even stupid or repeated questions very patiently.
And, it's not about dealing with "rich people" but deploying sensible and stable hardware.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
My intention was to build a dual boot XP Pro 64 and Ubuntu media server. I had installed the AMD64 version of Ubuntu 8.10 server and thought that I would be able to install Apache server. I need a GUI to work in. I tried to boot and install Mythbuntu 32 bit 8.10, but my machine now won't recognize... (0 Replies)
Discussion started by: docflyboy
0 Replies
2. UNIX for Dummies Questions & Answers
I have a dual boot system on my laptop running Windows 7 professional and Ubuntu 10.10. I would like my windows 7 desktop C:\users\username\Desktop and also my Ubuntu 10.10 desktop /home/username/Desktop to both save their files to the same location somewhere...perhaps /windows (a 40 gb win32... (0 Replies)
Discussion started by: Marcus Aurelius
0 Replies
3. Red Hat
Hi,
We have a OEL6.1 installed on our server.
We want developers to view there application logs generated on the server, but doesn't really want to give them access to server machine.
Can someone please suggest how can we configure apache/httpd to create a url which will show all files in... (1 Reply)
Discussion started by: shrshah64
1 Replies
4. UNIX for Advanced & Expert Users
Hi,
I want to add the library in my configure file. i am doing it using autoconf in ubuntu. I am new to the autoconf.
Can anyone please let me know how to add the library using configure file so that it can linked to my software which I am using?
Thanks in advance!!!!! (0 Replies)
Discussion started by: diehard
0 Replies
5. Solaris
Hi
I would like to know whether we can configure link based IPMP in private connectivity in Oracle RAC
Regarsd
---------- Post updated at 04:35 PM ---------- Previous update was at 04:27 PM ----------
Here I am taking about in case of private connectivity through cross cable (6 Replies)
Discussion started by: sb200
6 Replies
6. Ubuntu
Hello,
I am new to ubuntu Server OS and so trying to setup and ntp service on couple of servers.
I see ntp rpm is not installed.
# dpkg --get-selections | grep -v deinstall | grep ntp
ntpdate install
#
so I tried to installed ntp rpm using... (5 Replies)
Discussion started by: bobby320
5 Replies
7. Homework & Coursework Questions
Hi my name is Manju.
->I have configure the two way authentication on my linux server.
->Now I am able to apply two way authenticator on particuler user.
->Now I want to map this linux server to my AD server.
->Kindly tell me how to map AD(Active Directory) with this linux server.
... (2 Replies)
Discussion started by: manjusharma128
2 Replies
8. Linux
Hi my name is Manju.
->I have configure the two way authentication on my linux server.
->Now I am able to apply two way authenticator on particuler user.
->Now I want to map this linux server to my AD server.
->Kindly tell me how to map AD(Active Directory) with this linux server.
... (0 Replies)
Discussion started by: manjusharma128
0 Replies
9. Ubuntu
Hello.
Doing my first steps in Linux and while trying to configure a DHCP server in Linux i encountered some problems:
TOPOLOGY:
- Laptop with Windows 8.1
- VM Player 12 with Linux installed (Ubuntu Server 14.04)
- ICS-DHCP-SERVER installed and running
- Another LAPTOP conected to a... (1 Reply)
Discussion started by: Portuguevos
1 Replies
LEARN ABOUT MOJAVE
scope::guard
Scope::Guard(3) User Contributed Perl Documentation Scope::Guard(3)
NAME
Scope::Guard - lexically-scoped resource management
SYNOPSIS
my $guard = guard { ... };
# or
my $guard = scope_guard &handler;
# or
my $guard = Scope::Guard->new(sub { ... });
$guard->dismiss(); # disable the handler
DESCRIPTION
This module provides a convenient way to perform cleanup or other forms of resource management at the end of a scope. It is particularly
useful when dealing with exceptions: the "Scope::Guard" constructor takes a reference to a subroutine that is guaranteed to be called even
if the thread of execution is aborted prematurely. This effectively allows lexically-scoped "promises" to be made that are automatically
honoured by perl's garbage collector.
For more information, see: <http://www.drdobbs.com/cpp/184403758>
METHODS
new
my $guard = Scope::Guard->new(sub { ... });
# or
my $guard = Scope::Guard->new(&handler);
The "new" method creates a new "Scope::Guard" object which calls the supplied handler when its "DESTROY" method is called, typically at the
end of the scope.
dismiss
$guard->dismiss();
# or
$guard->dismiss(1);
"dismiss" detaches the handler from the "Scope::Guard" object. This revokes the "promise" to call the handler when the object is destroyed.
The handler can be re-enabled by calling:
$guard->dismiss(0);
EXPORTS
guard
"guard" takes a block and returns a new "Scope::Guard" object. It can be used as a shorthand for:
Scope::Guard->new(...)
e.g.
my $guard = guard { ... };
Note: calling "guard" anonymously, i.e. in void context, will raise an exception. This is because anonymous guards are destroyed
immediately (rather than at the end of the scope), which is unlikely to be the desired behaviour.
scope_guard
"scope_guard" is the same as "guard", but it takes a code ref rather than a block. e.g.
my $guard = scope_guard &handler;
or:
my $guard = scope_guard sub { ... };
or:
my $guard = scope_guard $handler;
As with "guard", calling "scope_guard" in void context will raise an exception.
VERSION
0.20
SEE ALSO
o B::Hooks::EndOfScope
o End
o Guard
o Hook::Scope
o Object::Destroyer
o Perl::AtEndOfScope
o ReleaseAction
o Scope::local_OnExit
o Scope::OnExit
o Sub::ScopeFinalizer
o Value::Canary
AUTHOR
chocolateboy <chocolate@cpan.org>
COPYRIGHT
Copyright (c) 2005-2010, chocolateboy.
This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.
perl v5.18.2 2010-05-16 Scope::Guard(3)