04-21-2011
Oops, sorry for the misread! Celtic monkey had it right
9 More Discussions You Might Find Interesting
1. AIX
Hi,
What is the diference between these two ?
thanks
Vilius (3 Replies)
Discussion started by: vilius
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
when I run the rsc comms the rsclogin, I type the loginname and the password, the rscpromt is coming, I type console and nothing is gone. What's wrong?
Thanks (3 Replies)
Discussion started by: MuellerUrs
3 Replies
3. UNIX for Dummies Questions & Answers
Sometimes when I open up the terminal (like just now) it says
Last login: Wed Jun 17 07:29:25 on console
sometimes it says ttys (like when I exit and open a new window/tab). What's the difference? and is something fishy going on? (6 Replies)
Discussion started by: Straitsfan
6 Replies
4. AIX
Hi,
I ssh to HMC, then vtmenu, then start a system console from there. How do I exit the console to return to HMC prompt? I've tried the following two key combinations but none of them is working: (1) ~~ (2) Ctrl+[, Shift+(
Thank you in advance! (4 Replies)
Discussion started by: aixlover
4 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I would like to configure ILOM to be able to connect to NetMgt from the network. When i connected to LOM from console using #. i am getting -> prompt.
then:
cd /SP/network
-> show /SP/network
Targets:
Properties:
commitpending = (Cannot show property) ... (3 Replies)
Discussion started by: nypreH
3 Replies
6. UNIX for Dummies Questions & Answers
I see these terms used all the time with hardly any distinction between the two.
Any clarification would be appreciated!:) I could only get emacs to open in console so I was also wondering what are the common applications to use in console.:wall: (7 Replies)
Discussion started by: theKbStockpiler
7 Replies
7. Solaris
Hi, The system is Sun x4150. I use putty ssh to access to it. I can't start system console:
(hung)
Any help will be greatly appreciated! (5 Replies)
Discussion started by: aixlover
5 Replies
8. Solaris
Hi,
I need to install solaris remotely via the ILOM port on a x4170 box, and I have downloaded the Solaris 11 for x86 - text install image and burned it on a DVD.
When I boot the box, it's showing the boot_archive loading percentage on the SP console, but when it's done and start the interactive... (0 Replies)
Discussion started by: u_paludan
0 Replies
9. Solaris
Hi Oracle Hardware Specialists,
I have shutdown a Sun Fire X2200 server running Solaris 10 x86 to single user mode to experiment some backup commands using Web based Sun embedded Lights Out Manager Redirection to open up a console session. However, it is not possible to copy & past text with... (7 Replies)
Discussion started by: gjackson123
7 Replies
LEARN ABOUT OSX
moose::cookbook::snack::types
Moose::Cookbook::Snack::Types(3) User Contributed Perl Documentation Moose::Cookbook::Snack::Types(3)
NAME
Moose::Cookbook::Snack::Types - Snippets of code for using Types and Type Constraints
VERSION
version 2.0604
SYNOPSIS
package Point;
use Moose;
has 'x' => ( isa => 'Int', is => 'ro' );
has 'y' => ( isa => 'Int', is => 'rw' );
package main;
use Try::Tiny;
my $point = try {
Point->new( x => 'fifty', y => 'forty' );
}
catch {
print "Oops: $_";
};
my $point;
my $xval = 'forty-two';
my $xattribute = Point->meta->find_attribute_by_name('x');
my $xtype_constraint = $xattribute->type_constraint;
if ( $xtype_constraint->check($xval) ) {
$point = Point->new( x => $xval, y => 0 );
}
else {
print "Value: $xval is not an " . $xtype_constraint->name . "
";
}
DESCRIPTION
This is the Point example from Moose::Cookbook::Basics::Point_AttributesAndSubclassing with type checking added.
If we try to assign a string value to an attribute that is an "Int", Moose will die with an explicit error message. The error will include
the attribute name, as well as the type constraint name and the value which failed the constraint check.
We use Try::Tiny to catch this error message.
Later, we get the Moose::Meta::TypeConstraint object from a Moose::Meta::Attribute and use the Moose::Meta::TypeConstraint to check a value
directly.
SEE ALSO
Moose::Cookbook::Basics::Point_AttributesAndSubclassing
Moose::Utils::TypeConstraints
Moose::Meta::Attribute
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::Types(3)