I've written a new function for a program.
I have the new_function.c, new_function.h and the new_function.o and I've added those 3 files in the same directory of the others files.
Then in the file.c (that use the new_function.c), I added:
then i try to do:
./configure ........... ok
but the "make" return with:
where "function_added" is defined and implemented in new_function.h and new_function.c.
This is the first time for me, but i read that what i've done should be enough.
Any idea why doesn't work?
Thanks
I need a program to rename file name.
so the input to run the program would be
RenameFiles //server1/Folder1/folder2/test*er.doc
program would return:
++server1+Folder1+folder2+test*er.doc
Can some one please help me? (1 Reply)
I created a batch file (./mybatch) that need to run few programs
at a sequnece but i need a command like the DOS call command in order
to return to the main batch file to proceed the sequence
example:
cd /dir1/path/dir2
invoke program1
cd /dir3/path2/ <--- i want to return here (2 Replies)
I have some .dat files that I cannot open and read the data. It is an awk program file, and my question would be to you all is there a way to convert this awk file to ascii text?
Thanks (10 Replies)
Hi,
i want to write a script that executes a program (exec?) .
this program then requires a filename as input.
how do i give it this input in the script so the program will be complete run and close by the script.
e.g.
exec prog.exe
program then asks for filename
"enter filename:"... (1 Reply)
Hey, i am trying to write a program that takes multiple files as command line arguments, then outputs them to a single file. i also need the option to read them back out again. essentially what i am trying to create is an archiver, however, a very simple one. The program i have accomplished so far... (1 Reply)
Hello,
I use UBUNTU 12.04.
I want to write a short program using awk to select some lines in a file based on a second file.
My first file has this format with about 400,000 lines and 47 fields:
SNP1 1 12.1
SNP2 1 13.2
SNP3 1 45.2
SNP4 1 23.4
My second file has this format:
SNP2
SNP3... (1 Reply)
Hi Friends,
This is the only solution to my task. So, any help is highly appreciated.
I have a file
cat input1.bed
chr1 100 200 abc
chr1 120 300 def
chr1 145 226 ghi
chr2 567 600 unix
Now, I have another file by name
input2.bed (This file is a binary file not readable by the... (7 Replies)
B17 -> B19 ;
B17 -> B21 ;
B18 -> B19 ;
Can any one help with the pointer solution to check for this -> symbol and one it finds the symbol it should move behind 4 characters and store the string
B17 in an array and then move 4 characters ahead and similarly save B21 likewise for each line... (7 Replies)
i have a directory where all .csv files are available. i have 3 perl programs(ex: a.pl,b.pl,c.pl) which continuously runs every 1 minute to scan all files in that directory. now i have 2 questions
1) how can i write an app lock on that particular folder to make sure only one program will scan... (4 Replies)
Discussion started by: sbjv
4 Replies
LEARN ABOUT DEBIAN
class::makemethods::template::structbuiltin
MakeMethods::Template::StructBuiltin(3pm) User Contributed Perl Documentation MakeMethods::Template::StructBuiltin(3pm)NAME
Class::MakeMethods::Template::StructBuiltin - generates a wrapper around some builtin function
SYNOPSIS
use Class::MakeMethods::Template::StructBuiltin (
-TargetClass => 'MyStat',
builtin_isa => [
'-{new_function}'=>'stat',
qw/ dev ino mode nlink /
]
);
DESCRIPTION
This class generates a wrapper around some builtin function, storing the results in the object and providing a by-name interface.
Takes a (core) function name, and a arrayref of return position names (we will call it pos_list). Creates:
new Calls the core func with any given arguments, stores the result in the instance.
x For each member of pos_list, creates a method of the same name which gets/sets the nth member of the returned list, where n is the
position of x in pos_list.
fields
Returns pos_list, in the given order.
dump
Returns a list item name, item value, in order.
Example Usage:
package Stat;
use Class::MakeMethods::Template::StructBuiltin
builtin_isa => [ '-{new_function}'=>'stat', qw/ dev ino mode nlink / ],
package main;
my $file = "$ENV{HOME}/.template";
my $s = Stat->new($file);
print "File $file has ", $s->nlink, " links
";
Note that (a) the new method does not check the return value of the function called (in the above example, if $file does not exist, you
will silently get an empty object), and (b) if you really want the above example, see the core File::stat module. But you get the idea, I
hope.
perl v5.10.1 2009-10-08 MakeMethods::Template::StructBuiltin(3pm)