Sponsored Content
Contact Us Post Here to Contact Site Administrators and Moderators If a closed thread/post is missing solution details, then how to contact the person? Post 303011231 by MadeInGermany on Monday 15th of January 2018 12:16:36 PM
Old 01-15-2018
LOL.
A better question: what's your Solaris version?
 

4 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Can not locate a thread to answer - Have solution to post

I have found answer to this issue, But I could not figure how to reply to thread. I could search for this thread using "only root can print" Please let me how i can find this thread and answer for public. Thanks Sunil Sharma 03-02-2005 bsnavarra Registered User Join Date:... (0 Replies)
Discussion started by: sunsharma
0 Replies

2. Post Here to Contact Site Administrators and Moderators

my thread got closed

I had a thread open and now it says it's closed. I had a question still on the forum and about 15mins after I posted my most recent question on it the thread said "closed". Why did this happen? I didn't violate any forum rules. Is there a limit on how many postings you can have in a single thread?... (1 Reply)
Discussion started by: hpicracing
1 Replies

3. Post Here to Contact Site Administrators and Moderators

Thread closed when learner has tried

I'm not so sure that this thread should have been closed. Though it was clearly homework the student was asking a specific question related to the assignment, but not the answer to the whole assignment. /www.unix.com/unix-dummies-questions-answers/107494-how-get-rid.html . IMHO The solution is... (1 Reply)
Discussion started by: methyl
1 Replies

4. UNIX for Dummies Questions & Answers

This forum is closed for new thread ... post here.

This forum is closed for new threads. Please post in this forum: UNIX for Beginners Questions & Answers (0 Replies)
Discussion started by: Neo
0 Replies
Moose::Cookbook::Snack::Keywords(3)			User Contributed Perl Documentation		       Moose::Cookbook::Snack::Keywords(3)

NAME
Moose::Cookbook::Snack::Keywords - Restricted "keywords" in Moose VERSION
version 2.0604 DESCRIPTION
Moose exports a number of sugar functions in order to emulate Perl built-in keywords. These can cause clashes with other user-defined functions. This document provides a list of those keywords for easy reference. The 'meta' keyword "use Moose" adds a method called "meta" to your class. If this conflicts with a method or function you are using, you can rename it, or prevent it from being installed entirely. To do this, pass the "-meta_name" option when you "use Moose". For instance: # install it under a different name use Moose -meta_name => 'moose_meta'; # don't install it at all use Moose -meta_name => undef; Moose Keywords If you are using Moose or Moose::Role it is best to avoid these keywords: extends with has before after around super override inner augment confess blessed Moose::Util::TypeConstraints Keywords If you are using Moose::Util::TypeConstraints it is best to avoid these keywords: type subtype class_type role_type maybe_type duck_type as where message optimize_as inline_as coerce from via enum find_type_constraint register_type_constraint Avoiding collisions Turning off Moose To remove the sugar functions Moose exports, just add "no Moose" at the bottom of your code: package Thing; use Moose; # code here no Moose; This will unexport the sugar functions that Moose originally exported. The same will also work for Moose::Role and Moose::Util::TypeConstraints. Sub::Exporter features Moose, Moose::Role and Moose::Util::TypeConstraints all use Sub::Exporter to handle all their exporting needs. This means that all the features that Sub::Exporter provides are also available to them. For instance, with Sub::Exporter you can rename keywords, like so: package LOL::Cat; use Moose 'has' => { -as => 'i_can_haz' }; i_can_haz 'cheeseburger' => ( is => 'rw', trigger => sub { print "NOM NOM" } ); LOL::Cat->new->cheeseburger('KTHNXBYE'); See the Sub::Exporter docs for more information. namespace::autoclean and namespace::clean You can also use namespace::autoclean to clean up your namespace. This will remove all imported functions from your namespace. Note that if you are importing functions that are intended to be used as methods (this includes overload, due to internal implementation details), it will remove these as well. Another option is to use namespace::clean directly, but you must be careful not to remove "meta" when doing so: package Foo; use Moose; use namespace::clean -except => 'meta'; # ... SEE ALSO
Moose Moose::Role Moose::Utils::TypeConstraints Sub::Exporter namespace::autoclean namespace::clean AUTHOR
Moose is maintained by the Moose Cabal, along with the help of many contributors. See "CABAL" in Moose and "CONTRIBUTORS" in Moose for details. COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Infinity Interactive, Inc.. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.16.2 2012-09-19 Moose::Cookbook::Snack::Keywords(3)
All times are GMT -4. The time now is 03:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy