08-14-2008
It would help a lot if we could see the code. Does the code compile with no errors and no warnings? .. global variables are not allocated on the stack.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I was able to solve my previous problem (link directory)... but now i have this following problem.
I have mounted a disk from other machine using "mount -F nfs" command. When i run a batch which generates some files in that drive.... after a certain number of files i get... (1 Reply)
Discussion started by: nileshkarania
1 Replies
2. Programming
Hi,
We are trying to run dbx on a core file for which we have the original executable and libs, but not the source / object tree. We have recompiled the objects from the original source, but dbx complains that they were compiled at a different time, and refuses to read them:
Object file:... (0 Replies)
Discussion started by: Sabari Nath S
0 Replies
3. Programming
Didn't have this problem in AIX, but ported to Linux with GCC compiler and am now getting a runtime error:
tssutil: symbol lookup error: /work/agility/devel/bin/libagam.so: undefined symbol: fstat
I'm sure most of you know that fstat is an intrinsic function just like printf, memcpy, etc. When I... (5 Replies)
Discussion started by: marcus121
5 Replies
4. Shell Programming and Scripting
Hi,
I have a perl script which is interacting with Database.
I have following line of code :
=================================================
sub BEGIN
{
#use Getopt::Std;
#getopt ('S');
#($STEAP)=($opt_S);
use lib ("/home/perl_lib");
use... (1 Reply)
Discussion started by: rawat_me01
1 Replies
5. Shell Programming and Scripting
p="-e"
echo $p
It is not returning the value "-e" stored. Instead returns null.
I am wondering how could this happen. Please help me out.I tried all possibilities like p='-e' | p="\-e". Nothing seems to work.
:confused::confused: (10 Replies)
Discussion started by: shanneykar
10 Replies
6. Solaris
I'm posting here as it didn't seem quite right in the hardware section (as it's LOM commands). My apologies if I have that wrong though :)
I've finally gotten round to configuring the LOM on my Netra X1, but I can't get it to change the hostname via the "set" command:
lom>show hostname... (2 Replies)
Discussion started by: Smiling Dragon
2 Replies
7. Shell Programming and Scripting
Hi All,
I need to get the version of python installed and store it in a variable for later use. Whereas it is printing on the console instead of storing to variable. I am able to store output of ls command in a variable. Please check the below code :
root@myhost:/volumes/srini# cat... (4 Replies)
Discussion started by: srinivasan.neel
4 Replies
8. Solaris
Hi,
I am trying to get an HPz420 workstation instaled (zfs root pool) via a jump-start server.
I have a zfs image (from this workstation) the Solaris release is 10 1/13 update 11.
I use a sparc U25 install server, upgraded to the same solaris build 10 1/13.
This server is configured to install... (8 Replies)
Discussion started by: sc0rpie
8 Replies
9. Solaris
Hello,
Each time a user log on to host, they receive below error:
-sh: /tmp/outfile: cannot create
Example:
$ ssh host
user@host's password:
Last login: Fri Dec 4 08:17:28 2015 from client.ref
|-----------------------------------------------------------------|
-sh:... (2 Replies)
Discussion started by: feroccimx
2 Replies
LEARN ABOUT DEBIAN
text::micromason::linenumbers
MicroMason::LineNumbers(3pm) User Contributed Perl Documentation MicroMason::LineNumbers(3pm)
NAME
Text::MicroMason::LineNumbers - Report errors at correct source code line numbers
DESCRIPTION
This mixin class associates each token in a template with the line number on which it was found, and then inserts special comments in the
generated Perl code that preserve that original source file and line number information.
This should facilitate debugging, by making it easier to match up run- time errors with the template code that produced them.
To turn this behavior on, just add "-LineNumbers" to your MicroMason creation call:
my $mason = Text::MicroMason->new( qw( -LineNumbers ) );
Public Methods
These methods are called from within the normal flow of MicroMason functionality, and you do not need to invoke them directly.
read()
Clears the variables used to store the file name and first line of a template, so that they can be set by the methods below.
read_file()
Saves the source file name before invoking the standard behavior for this method.
$mason->compile( file => $filename );
read_handle()
Saves the caller's file name before invoking the standard behavior for this method.
$mason->compile( handle => $filename );
read_text()
Saves the caller's file name before invoking the standard behavior for this method.
$mason->compile( text => $filename );
read_inline()
This is similar to read_text, except it adjusts the line numbering to reflect a template that's embdded as a literal text in the Perl
code.
$mason->compile( inline => q{
My template text goes here.
} );
lex()
Identical to the lex() method provided by the Base class, except that it also inserts a stream of line-number-setting comments into the
to-be- compiled Perl code that attempt to re-synchronize the
assembler_rules()
Maps the "line_num" token to a perl line number comment.
Private Methods
_get_external_caller()
Returns the source file and line number of the first item in the function call stack that is not a Text::MicroMason package.
SEE ALSO
For an overview of this templating framework, see Text::MicroMason.
This is a mixin class intended for use with Text::MicroMason::Base.
For distribution, installation, support, copyright and license information, see Text::MicroMason::Docs::ReadMe.
perl v5.10.1 2009-11-11 MicroMason::LineNumbers(3pm)