Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

app::kgb::change(3pm) [debian man page]

App::KGB::Change(3pm)					User Contributed Perl Documentation				     App::KGB::Change(3pm)

NAME
App::KGB::Change - a single file change SYNOPSIS
my $c = App::KGB::Change->new( { action => "M", prop_change => 1, path => "/there" } ); print $c; my $c = App::KGB::Change->new("(M+)/there"); DESCRIPTION
App::KGB::Change encapsulates a single path change from a given change set (or commit). App::KGB::Change overloads the "" operator in order to provide a default string representation of changes. FIELDS
action (mandatory) The action performed on the item. Possible values are: M The path was modified. A The path was added. D The path was deleted. R The path was replaced. path (mandatory) The path that was changed. prop_change Boolean. Indicated that some properties of the path, not the content were changed. CONSTRUCTOR
new ( { initial values } ) More-or-less standard constructor. It can take a hashref with keys all the field names (See ). Or, it can take a single string, which is de-composed into components. See for examples. METHODS
as_string() Return a string representation of the change. Used by the "" overload. The resulting string is suitable for feeding the constructor if needed. CLASS METHODS
detect_common_dir("changes") Given an arrayref of changes (instances of APP::KGB::Change), detects the longest path that is common to all of them. All the changes' paths are trimmed from the common part. Example: foo/b foo/x foo/bar/a would return 'foo' and the paths would be trimmed to b x bar/a perl v5.12.4 2011-09-15 App::KGB::Change(3pm)

Check Out this Related Man Page

Plack::App::Cascade(3pm)				User Contributed Perl Documentation				  Plack::App::Cascade(3pm)

NAME
Plack::App::Cascade - Cascadable compound application SYNOPSIS
use Plack::App::Cascade; use Plack::App::URLMap; use Plack::App::File; # Serve static files from multiple search paths my $cascade = Plack::App::Cascade->new; $cascade->add( Plack::App::File->new(root => "/www/example.com/foo")->to_app ); $cascade->add( Plack::App::File->new(root => "/www/example.com/bar")->to_app ); my $app = Plack::App::URLMap->new; $app->map("/static", $cascade); $app->to_app; DESCRIPTION
Plack::App::Cascade is a Plack middleware component that compounds several apps and tries them to return the first response that is not 404. METHODS
new $app = Plack::App::Cascade->new(apps => [ $app1, $app2 ]); Creates a new Cascade application. add $app->add($app1); $app->add($app2, $app3); Appends a new application to the list of apps to try. You can pass the multiple apps to the one "add" call. catch $app->catch([ 403, 404 ]); Sets which error codes to catch and process onwards. Defaults to 404. AUTHOR
Tatsuhiko Miyagawa SEE ALSO
Plack::App::URLMap Rack::Cascade perl v5.14.2 2011-12-04 Plack::App::Cascade(3pm)
Man Page

13 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Career Change

Hi, all! I'm a 37 year-old Electrical Engineer with a BSEE and 12 years of experience. I was laid off last week, and have been considering a career change (I've had enough of electrical design). I've used computers for the past 20 years as a hobby (building computers, playing games,... (5 Replies)
Discussion started by: Snapster
5 Replies

2. News, Links, Events and Announcements

HP has new Linux Laptop

Newfactor Cnet story HP Web Site It's cool that they offer it. But it comes with XP Pro. Change that to XP Home and you save $50. Change that to Linux and it costs the same as XP Home. They are not passing the savings to the consumer. (1 Reply)
Discussion started by: Perderabo
1 Replies

3. AIX

Handling User Id Change in AIX

Hi, I have a query that suppose the first or last name of the user changes and we need to change its userid for aix too. Then in that case how do we handle this scenario??I guess we can't change the user id so we should re-create the new id and associate all the data of the old id. But I donno... (1 Reply)
Discussion started by: tintin@10
1 Replies

4. UNIX for Advanced & Expert Users

Change Default Path ?

Dear All When i am telnet' ing to some IP, after logging in, i am into some default path.I want to specify "custom path" , that is after logging in , when i do pwd it should be custom path.For this where i have to change the setting or edit the path already specified. I am having... (4 Replies)
Discussion started by: tkbharani
4 Replies

5. Shell Programming and Scripting

how to sed in this case

I want to change time format For example , 1:1:15 = Change to => 01:01:15 10:8:20 = Change to => 10:08:20 22:10:2 = Change to => 10:10:02 Thank in advance (4 Replies)
Discussion started by: unitipon
4 Replies

6. Shell Programming and Scripting

delete a string from line

hi i have a file contains data session terminated Line timeout: 120 Change state START->SIGNON_REPLY, RC=0 Change state SIGNON_REPLY->SIGNON, RC=0 i need to remove "Change state" and write to the same file please help thanks Satya (3 Replies)
Discussion started by: Satyak
3 Replies

7. UNIX for Dummies Questions & Answers

Creating a table (graphic not database)

Hi, I want to create a table on our unix box that allows the user to tab through it and select certain option by putting an asterix or similair into it. e.g. -------------- |Start App | | |Stop App |*| etc... Can this be done using a script (never seen any graphics options in ksh, but... (2 Replies)
Discussion started by: dlam
2 Replies

8. Post Here to Contact Site Administrators and Moderators

Polls: Change vote

Since most of the polls in "The Lounge" are subjective and quite some are asking about things that might change over time (examples here, here and here), I think it might be a good idea to allow a change of mind on (some) polls. A vBulletin mod that can do that is available here What's your... (3 Replies)
Discussion started by: pludi
3 Replies

9. Shell Programming and Scripting

Counting lines for each application

Hi All, I have a output that suppose to be like this (see below please) App : Line counts === ================== AAA: 100 BBB: 201 CCC: 137 DDD: 32 EEE: 55 for i in `ps -ef | grep App`; do print $i; done This only shows App : === (12 Replies)
Discussion started by: Beginer0705
12 Replies

10. Shell Programming and Scripting

Change last Character

Hi, Someone can help me please, i have text in file like this: (a,b,c,d,e), (f,g,h,i,j), (k,l,m,n,o), and i want to change the last character to like this: (a,b,c,d,e), (f,g,h,i,j), (k,l,m,n,o); last array character "," i want change to ";" anyone can help me please,, thanks (2 Replies)
Discussion started by: ryo
2 Replies

11. Shell Programming and Scripting

Changing the character after the Underscore(_)

Hi Everyone, I am looking for a command that would do the following: 1) Change all the letters/words in a file to Lower case Letters/words. 2) Remove the Underscore (_) and Change the Character after the underscore (_) to an Uppercase letter. Example: File contains the below words: ... (5 Replies)
Discussion started by: filter
5 Replies

12. UNIX for Dummies Questions & Answers

Change variable value

I have big XML which i want to change all VERSIONNUMBER equal to 1,in existing file values of VERSIONNUMBER will be different as below now i want to change all VERSIONNUMBER values qual to 1.Please help me which will convert versionnumber values. <SHORTCUT OBJECTSUBTYPE ="" OBJECTTYPE ... (5 Replies)
Discussion started by: katakamvivek
5 Replies

13. Shell Programming and Scripting

Replace values

Gents, Please can you help me with this. When column 49 == 2 Need to do the following changes; Change previous row field (substr$0,45,4)-1 Change previous row field (substr$0,72,5)+2 Change actual row field (substr$0,40,4)+1 Change actual row field (substr$0,49,1)-1 Change actual... (6 Replies)
Discussion started by: jiam912
6 Replies