ppix::regexp::token::grouptype::code(3pm) [debian man page]
PPIx::Regexp::Token::GroupType::Code(3pm) User Contributed Perl Documentation PPIx::Regexp::Token::GroupType::Code(3pm)NAME
PPIx::Regexp::Token::GroupType::Code - Represent one of the embedded code indicators
SYNOPSIS
use PPIx::Regexp::Dumper;
PPIx::Regexp::Dumper->new( 'qr{(?{print "hello world!
")}smx' )
->print();
INHERITANCE
"PPIx::Regexp::Token::GroupType::Code" is a PPIx::Regexp::Token::GroupType.
"PPIx::Regexp::Token::GroupType::Code" has no descendants.
DESCRIPTION
This method represents one of the embedded code indicators, either '?' or '??', in the zero-width assertion
(?{ print "Hello, world!
" })
or the old-style deferred expression syntax
my $foo;
$foo = qr{ foo (??{ $foo }) }smx;
METHODS
This class provides no public methods beyond those provided by its superclass.
SUPPORT
Support is by the author. Please file bug reports at <http://rt.cpan.org>, or in electronic mail to the author.
AUTHOR
Thomas R. Wyant, III wyant at cpan dot org
COPYRIGHT AND LICENSE
Copyright (C) 2009-2012 by Thomas R. Wyant, III
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full
text of the licenses in the directory LICENSES.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.
perl v5.14.2 2012-06-06 PPIx::Regexp::Token::GroupType::Code(3pm)
Check Out this Related Man Page
PPIx::Regexp::Token::GroupType::Assertion(3pm) User Contributed Perl Documentation PPIx::Regexp::Token::GroupType::Assertion(3pm)NAME
PPIx::Regexp::Token::GroupType::Assertion - Represent a look ahead or look behind assertion
SYNOPSIS
use PPIx::Regexp::Dumper;
PPIx::Regexp::Dumper->new( 'qr{foo(?=bar)}smx' )
->print();
INHERITANCE
"PPIx::Regexp::Token::GroupType::Assertion" is a PPIx::Regexp::Token::GroupType.
"PPIx::Regexp::Token::GroupType::Assertion" has no descendants.
DESCRIPTION
This class represents the parenthesized look ahead and look behind assertions.
METHODS
This class provides no public methods beyond those provided by its superclass.
SUPPORT
Support is by the author. Please file bug reports at <http://rt.cpan.org>, or in electronic mail to the author.
AUTHOR
Thomas R. Wyant, III wyant at cpan dot org
COPYRIGHT AND LICENSE
Copyright (C) 2009-2012 by Thomas R. Wyant, III
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full
text of the licenses in the directory LICENSES.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.
perl v5.14.2 2012-06-06 PPIx::Regexp::Token::GroupType::Assertion(3pm)
Hello,
I'm teaching myself C and attempting to write a little program that will calculate the monthly payments on a fixed-rate mortage:
/* Aaron's mortgage foo */
// mortgage.c
#include <stdio.h>
#include <math.h>
int main(void)
{
float interestRate; // The bank's fixed... (6 Replies)
I have a perl code that runs like
Code I
sub p
{
if ($d >= $D) {return}
printf "%3s"x$d++," ";
printf "%s%s\n",$_,$h{$_}?" ** ":"";
if (!$h{$_})
{
$h{$_}=1;
map {p($_)} @{$s{$_}}
}
$d--
}
($Set,$Job,$Num,$D) = (@ARGV);
map {shift} 0..3; (8 Replies)
Hi all,
I'm trying to do a very simple script, as you can see as follow:
#!/bin/bash
#Valorizzazione Token presenti nel file di properties
var_path_weblogic="`cat weblogic.properties | grep "dir_wl" | /usr/xpg4/bin/awk '{print $3}'`"
var_ip_address="`cat... (5 Replies)
Hi!
I have a file with multiple lines following this format:
<a href="xxx.aaa_bbb_ccc.yyy">xxx.aaa_bbb_ccc.yyy</a>
The goal is to replace the title (not modifying the href) so the new lines looks like this:
<a href="xxx.aaa_bbb_ccc.yyy">Aaa bbb ccc</a>
The number of underscores in the... (2 Replies)
I'm just trying to confirm that I understand someone's code correctly.
If someone has code that says:
$foo ||= mysub();
I'm assuming that it means if $foo is nothing or undef, then assign it some value via mysub(). If I'm wrong on this, please let me know.
Also, what's the difference... (4 Replies)
I usually use :
Code:
awk '{gsub(/xxx/,"yyy");print}'
to substitute xxx with yyy.
I have a problem substitute an expression like
Code:
x ' y
Because of the ( ' )
Any idea on how to get over this problem?
Thanks (2 Replies)
echo "2012-12-26--14.8224 2012-12-27--14.2898 2012-12-28--14.9180 2012-12-29--13.3637 2012-12-30--13.7091"
the set of numbers i provided above is separated by spaces. how do i count how many sets there are?
i tried:
echo "2012-12-26--14.8224 2012-12-27--14.2898 2012-12-28--14.9180... (5 Replies)
I would like to extract "1333 Fairlane" given the below text.
The word "Building:" is always present. The wording between Building and the beginning of the address can be almost anything. It appears the the hyphen is there most of the time.
Campus: Fairlane Business Park
Building:... (9 Replies)
# cat file
Hello world
Hello earth
"Hello" world hello world 'hello'
hello "world"
hello 'world'
hello hello
hello hello helloTarget :- For more than one occurence of hello
# grep "\(hello\).*\1" file
"Hello" world hello world 'hello'
hello hello
hello hello hello
Target:- match... (5 Replies)
Hi All,
Can some one please explain the below code. Especially the %,* How it renaming the files and removing last field
for file in *.gz.*
do
echo mv $file ${file%\.*}
done
i/p
abcd.gz.20151011.1
o/p
abcd.gz.20151011 (3 Replies)
I have this code that works great ...
#!/bin/sh
for file in "$@"
do
ext=${file##*.}
base=${file%.*}
num=${base##*v}
zeroes=${num%%*}
num=${num#$zeroes} #remove leading zeros, or it uses octal
num=$((num+1))
base=${base%v*}
... (5 Replies)