10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Could you please help me to get last reference date in Unix, in Unix we maintain SAS7BDAT files.
Is there any command or script to get the info,
Thank you. (2 Replies)
Discussion started by: subbarao12
2 Replies
2. Shell Programming and Scripting
Guys,
May i know how can we de reference the code reference variable.?
my $a = sub{$a=shift;$b=shift;print "SUM:",($a+$b),"\n";};
print $a->(4,5);
How can we print the whole function ?
Please suggest me regarding this.
Thanks for your time :)
Cheers,
Ranga :) (0 Replies)
Discussion started by: rangarasan
0 Replies
3. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
The problem is a function which i typed although it kept saying that it is a undefined reference still. other... (1 Reply)
Discussion started by: mgyeah
1 Replies
4. Programming
Ive just started programming in C and am confused with the output of the code
void main()
{
int a=10;
int b=20;
swapr(a++,b++);
printf("%d %d",a,b);
}
swapr (int *x,int *y)
{
x+=2;
y+=3;
}
the output of the code is 11,21 which is confusing. first its... (3 Replies)
Discussion started by: ra2000
3 Replies
5. Shell Programming and Scripting
Hi all,
I have a reference named $test. it points to the data structure as follows
'test' =>
},
... (1 Reply)
Discussion started by: Damon sine
1 Replies
6. Programming
Hi All,
Which one do you think is better as the C reference book: C in a Nutshell (O'Reilly, 2005) or C Primer Plus 5th ed. (Sams, 2004)?
I knew both of them should be great, but I certainly do not want to buy both. Any suggestion? Thanks! (6 Replies)
Discussion started by: zx1106
6 Replies
7. Shell Programming and Scripting
Hi!
I need to determin the most efficient way to do something (rather simple, I thought).
I'm currently echo(ing) a series of menu options, and reading the command input as the number associated with the entry. What I need to do is when the option 1 is selected, that it references a list and... (18 Replies)
Discussion started by: cchaloux
18 Replies
8. HP-UX
I'm having to write 'C' programs for a group of HP-UX 11.X systems. While I have found many 'C' reference books which I like, none of them reference using 'C' in the UNIX environment.
Anyone have any good recommendations for books about 'C' programming under UNIX?
Thanks.
Chris (0 Replies)
Discussion started by: chrisc@nwark.ne
0 Replies
9. Shell Programming and Scripting
I might know the answer to this, but I just want to see if any of you know any work arounds before I go and re-write the whole thing.
I have a script as follow:
$ cat testing
#! /usr/bin/ksh
f ()
{
echo "Type \"y\" \c"
read value
if ;
then
... (1 Reply)
Discussion started by: fidodido
1 Replies
10. Programming
Can any one explain how the statement '2' in the following statements is a legal one.
int & ref = 3; // Illegal statement - Compiler error.
const int& ref=3 ; // Compile and executes properly.
Thanks in Advance,
Arun (1 Reply)
Discussion started by: arun.viswanath
1 Replies
PPIx::Regexp::Token::Reference(3pm) User Contributed Perl Documentation PPIx::Regexp::Token::Reference(3pm)
NAME
PPIx::Regexp::Token::Reference - Represent a reference to a capture
SYNOPSIS
use PPIx::Regexp::Dumper;
PPIx::Regexp::Dumper->new( 'qr{1}smx' )
->print();
INHERITANCE
"PPIx::Regexp::Token::Reference" is a PPIx::Regexp::Token.
"PPIx::Regexp::Token::Reference" is the parent of PPIx::Regexp::Token::Backreference, PPIx::Regexp::Token::Condition and
PPIx::Regexp::Token::Recursion.
DESCRIPTION
This abstract class represents a reference to a capture buffer, either numbered or named. It should never be instantiated, but it provides
a number of methods to its subclasses.
METHODS
This class provides the following public methods. Methods not documented here are private, and unsupported in the sense that the author
reserves the right to change or remove them without notice.
absolute
print "The absolute reference is ", $ref->absolute(), "
";
This method returns the absolute number of the capture buffer referred to. This is the same as number() for unsigned numeric references. If
the reference is to a named buffer, "undef" is returned.
is_named
$ref->is_named and print "named reference
";
This method returns true if the reference is named rather than numbered.
is_relative
$ref->is_relative()
and print "relative numbered reference
";
This method returns true if the reference is numbered and it is a relative number (i.e. if it is signed).
name
print "The name is ", $ref->name(), "
";
This method returns the name of the capture buffer referred to. In the case of a reference to a numbered capture (i.e. "is_named" returns
false), this method returns "undef".
number
print "The number is ", $ref->number(), "
";
This method returns the number of the capture buffer referred to. In the case of a reference to a named capture (i.e. "is_named" returns
true), this method returns "undef".
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::Reference(3pm)