Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

moosex::types::common::string(3pm) [debian man page]

MooseX::Types::Common::String(3pm)			User Contributed Perl Documentation			MooseX::Types::Common::String(3pm)

NAME
MooseX::Types::Common::String - Commonly used string types SYNOPSIS
use MooseX::Types::Common::String qw/SimpleStr/; has short_str => (is => 'rw', isa => SimpleStr); ... #this will fail $object->short_str("string with breaks"); DESCRIPTION
A set of commonly-used string type constraints that do not ship with Moose by default. o SimpleStr A Str with no new-line characters. o NonEmptySimpleStr A Str with no new-line characters and length > 0 o LowerCaseSimpleStr A Str with no new-line characters, length > 0 and no uppercase characters A coercion exists via "lc" from NonEmptySimpleStr o UpperCaseSimpleStr A Str with no new-line characters, length > 0 and no lowercase characters A coercion exists via "uc" from NonEmptySimpleStr o Password o StrongPassword o NonEmptyStr A Str with length > 0 o LowerCaseStr A Str with length > 0 and no uppercase characters. A coercion exists via "lc" from NonEmptyStr o UpperCaseStr A Str with length > 0 and no lowercase characters. A coercion exists via "uc" from NonEmptyStr o NumericCode A Str with no new-line characters that consists of only Numeric characters. Examples include, Social Security Numbers, PINs, Postal Codes, HTTP Status Codes, etc. Supports attempting to coerce from a string that has punctuation in it ( e.g credit card number 4111-1111-1111-1111 ). SEE ALSO
o MooseX::Types::Common::Numeric AUTHORS
Please see:: MooseX::Types::Common perl v5.14.2 2012-06-14 MooseX::Types::Common::String(3pm)

Check Out this Related Man Page

MooseX::Types::Moose(3pm)				User Contributed Perl Documentation				 MooseX::Types::Moose(3pm)

NAME
MooseX::Types::Moose - Type exports that match the types shipped with Moose VERSION
version 0.35 SYNOPSIS
package Foo; use Moose; use MooseX::Types::Moose qw( ArrayRef Int Str ); use Carp qw( croak ); has 'name', is => 'rw', isa => Str; has 'ids', is => 'rw', isa => ArrayRef[Int]; sub add { my ($self, $x, $y) = @_; croak 'First arg not an Int' unless is_Int($x); croak 'Second arg not an Int' unless is_Int($y); return $x + $y; } 1; DESCRIPTION
This package contains a virtual library for MooseX::Types that is able to export all types known to Moose. See MooseX::Types for general usage information. METHODS
type_storage Overrides MooseX::Types::Base' "type_storage" to provide a hash reference containing all built-in Moose types. SEE ALSO
MooseX::Types::Moose, Moose, Moose::Util::TypeConstraints LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as perl itself. AUTHOR
Robert "phaylon" Sedlacek <rs@474.at> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Robert "phaylon" Sedlacek. 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.14.2 2012-05-19 MooseX::Types::Moose(3pm)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Add CR to a String

How can I add a carriage return to a string for every 35 characters within the string? Basically reversing a tr where I removed the CR and LF's. Thanks for the help! (4 Replies)
Discussion started by: bthomas
4 Replies

2. Shell Programming and Scripting

grep for non numbers

Hi, I want to find out whether a string contains non numbers and + and - example : Str="0005000A" - It contains A Str="0005000+" - No problem What I have done is , echo $Str | grep I will have to list out all non numeric characters... (6 Replies)
Discussion started by: shihabvk
6 Replies

3. UNIX for Dummies Questions & Answers

SET command

Hi Unixers, :) In a shell script i found the following statements mline='grep\^ 1111 emaster.dbf set -- $mline The first statement searches the emaster.dbf file for the code 1111 and ifit finds any such line it gets that line and stores it in mline. But iam getting little bit confusion with... (4 Replies)
Discussion started by: ravi raj kumar
4 Replies

4. UNIX for Dummies Questions & Answers

AlphaNumeric String Operations

Hi :) I am writing a ksh I have a string of general format A12B3456CD78 the string is of variable length the string always ends with numbers (here it is 78.. it can be any number of digits may be 789 or just 7) before these ending numbers are alphabets (here it is CD can even be... (3 Replies)
Discussion started by: lakshmikanth
3 Replies

5. What is on Your Mind?

Social Security number?

We have now been living in Vence for 3 months. My husband works for a large IT company. How do we get hold of our Social Security numbers and Carte Vitale please? Thanks (4 Replies)
Discussion started by: shanekol
4 Replies

6. Shell Programming and Scripting

compare 2 files..

Hello..I am trying to find solution for this: I have 2 files A and B A: 1234 2345 3211 1111 5555 6666 7777 8888 9876 B: (8 Replies)
Discussion started by: amon
8 Replies

7. Shell Programming and Scripting

Merging 2 files

Hi, I have got two files 1.txt 1111|apple| 2222|orange| 2.txt 1111|1234|000000000004356| 1111|1234|000000001111| 1111|1234|002000011112| 2222|5678|000000002222| 2222|9102|000000002222| I need to merge these two so that my out put looks like below: Search code being used should be... (4 Replies)
Discussion started by: jisha
4 Replies

8. Shell Programming and Scripting

Truncate Specific Parts of a String

How do you truncate specific parts of a string. Example: 1 This is the string Goal: This is the string As you can see I'm trying to simply remove the first two characters of the string the number one and the space between the one and the word "this." Your help is appreciated. ... (8 Replies)
Discussion started by: royarellano
8 Replies

9. Shell Programming and Scripting

sed special character replace

I need to do the following: text in the format of: ADDRESS=abcd123:1111 - abcd123:1111 is different on every system. replace with: ADDRESS=localhost:2222 sed 's/ADDRESS=<What do I use here?>/ADDRESS=localhost:2222/g' Everything I've tried ends up with: ... (3 Replies)
Discussion started by: toor13
3 Replies

10. Shell Programming and Scripting

Find the length of each line in the file

Hi, I want to find the length of each line(including all the characters, spaces etc.) in a file and check if all the lines are of same length using a ksh script. Please help. Thanks in advance. (7 Replies)
Discussion started by: Suryaaravindh
7 Replies

11. Shell Programming and Scripting

Pattern matching question

Hi Guys, I am trying to setup a check for the string using an "if" statement. The valid entry is only the one which contain Numbers and Capital Alpha-Numeric characters, for example: BA6F, BA6E, BB21 etc... I am using the following "if" constract to check the input, but it fails allowing Small... (3 Replies)
Discussion started by: aoussenko
3 Replies

12. Shell Programming and Scripting

Adding column values in a file

Hi, I am having a file in the following format. for aaaa 1111 1234 2222 3434 for bbbb 1111 3434.343 2222 2343 for cccc 3333 2343.343 4444 89000 for dddd 1111 5678.343 2222 890.3 aaaa 2343.343 bbbb 34343.343 (5 Replies)
Discussion started by: jpkumar10
5 Replies

13. Shell Programming and Scripting

Pivot Column using awk

Hello everyone I have a 20M file which is having the below sample layout 1111,ABC,100 1111,DEF,200 1111,XYZ,300 4444,LMN,100 4444,AKH,500 4444,WCD,400 2222,ABC,100 7777,DEF,300 7777,WCD,300 I need to covert this to below format Output Party_ID|ABC|AKH|DEF|LMN|WCD|XYZ... (5 Replies)
Discussion started by: morbid_angel
5 Replies

14. OS X (Apple)

String manipulation

i have a string that am looking to extract all characters following 3 consecutiv numbers. Example my string is J1705PEAN038TDMN, i need to get TDMN My string can have multiple 3 consecutive numbers, i need what follows last occurance (9 Replies)
Discussion started by: gigagigosu
9 Replies

15. Shell Programming and Scripting

How to uppercase matching line when string found?

Hello, Could you please help me how to search the string in a file, and when found; change the existing line to uppercase in command line? I tried: ?whichcommand? -A "EXT" fileA | awk '{print tolower($0)}' | tee fileB tr command simply converts entire file to uppercase but this is not what... (4 Replies)
Discussion started by: baris35
4 Replies