What does the system call "dup" do?
What is the difference between dup and dup2
I have a fair idea of what it does but I am confused when its coming down to the exact details...
Please help me!:confused: (2 Replies)
open, creat, read, write, lseek and close
Are they all primitive?
:confused:
*Another Question: is there a different between a system call, and an i/o system call? (2 Replies)
Hi,
I'm new to UNIX system calls. Can someone share your knowledge as to how exactly system calls should be executed?
Can they be typed like commands such as mkdir on the terminal itself? Also, are there any websites which will show me an example of the output to expect when a system call like... (1 Reply)
Hello,
how would i be able to call ps in C programming?
thanks,
---------- Post updated at 01:39 AM ---------- Previous update was at 01:31 AM ----------
here's the complete system call, ps -o pid -p %d, getpit() (2 Replies)
All,
Kindly let me know command which is used to trace the system calls on HP - UX server when an executable is run.
On Solaris we have TRUSS which does the need. On HP UX we have TUSC command which is a third party software. Currently this is not installed on my HP Server. If there... (3 Replies)
Discussion started by: helper
3 Replies
LEARN ABOUT DEBIAN
mason::plugin::dollardot
Mason::Plugin::DollarDot(3pm) User Contributed Perl Documentation Mason::Plugin::DollarDot(3pm)NAME
Mason::Plugin::DollarDot - Allow $. as substitution for $self-> and in attribute names
SYNOPSIS
<%class>
has 'name';
has 'date';
</%class>
<%method greet>
Hello, <% $.name %>. Today is <% $.date %>.
</%method>
...
% $.greet();
<%init>
# Set the date
$.date(scalar(localtime));
# or, if combined with LvalueAttributes
$.date = scalar(localtime);
</%init>
DESCRIPTION
This plugin substitutes "$.identifier" for "$self->identifier" in all Perl code inside components, so that $. can be used when referring to
attributes and calling methods. The actual regex is
s/ $.([^Wd]w*) / $self->$1 /gx;
RATIONALE
In Mason 2, components have to write "$self->" a lot to refer to attributes that were simple scalars in Mason 1. This eases the transition
pain. $. was chosen because of its similar use in Perl 6.
This plugin falls under the heading of gratuitous source filtering, which the author generally agrees is Evil. That said, this is a very
limited filter, and seems unlikely to break any legitimate Perl syntax other than use of the $. special variable (input line number).
BUGS
Will not interpolate as expected inside double quotes:
"My name is $.name" # nope
instead you have to do
"My name is " . $.name
SEE ALSO
Mason
AUTHOR
Jonathan Swartz <swartz@pobox.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Jonathan Swartz.
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-02 Mason::Plugin::DollarDot(3pm)