access to file attributes via inode516 (1/30/2013 1:50:42 PM) comp.lang.c This is a listing named testinode.c:
1 #include
2 #include
3 int main()
4 {
5 char filename[256] = "test.txt";
6 struct stat filestat;
7 stat(filename, &filestat);
8 printf("st_ino is... cartercc
including a Perl script in a C executable718 (1/22/2013 3:11:52 PM) comp.lang.perl.misc I have a small C program that displays file attributes, essentially running=
the stat command and emitting the output to the console.
This morning, I have a new requirement -- to nicely format the output, ... ccc31807
best way to make a few changes in a large data file2136 (1/8/2013 4:25:36 PM) comp.lang.perl.misc My big data file looks like this:
1,al
2,becky
3,carl
4,debbie
5,ed
6,frieda
.... for perhaps 200K or 300k lines
My change file looks like this:
5, edward
.... for perhaps ten or twelve lines
My ... ccc31807
simple, terse reference to nested hash values in Common Lisp2341 (12/26/2012 4:53:02 AM) comp.lang.lisp In Perl, if you have a nested hash, you can get a particular value by doing this:
$nested_hash{$key1}{$key2} gets the value.
In Python, you can do nestedHash[key1][key2] gets the appropriate value.
Is th... ccc31807
form submission to two pages (Perl, CGI, JavaScript)226 (12/17/2012 7:24:29 PM) comp.lang.perl.misc I have a rather long list, perhaps named 'list_presidents' that allows user=
s to update single records. It might look like this, with the convention th=
at [[input text][submit N]] is an HTML form:
1 | Ge... ccc31807
sockets with SBCL and sb-bsd-sockets222 (12/5/2012 6:07:28 PM) comp.lang.lisp If I knew what I was doing, I wouldn't need to make this post, but I don't know what I'm doing, therefore I'm making this post.
This relates to communication between two machines. Here is some code I shamele... ccc31807
idiomatic lisp style, dealing with local variables619 (12/4/2012 10:12:07 PM) comp.lang.lisp Okay, I'm now spending about an hour a day writing real lisp, enough so that the non-obvious questions come up. Below, I have copied four variables that I use, two functions, SUM-CDR and GOODNESS-1, and example... ccc31807
destructively changing the cdr of a sublist in a function1126 (11/9/2012 4:31:38 PM) comp.lang.lisp This question is related to the one I asked the other day about summing list elements.
Suppose you have a data structure that looks like this:
(defparameter list-1 '((0 . 2)(1 . 3)(2 . 4)(3 . 0)))
I want... ccc31807
summing list elements that meet a criterion1027 (11/7/2012 8:33:16 PM) comp.lang.lisp It's after 3:00 p.m. I came in this morning with a simple problem to solve =
and have spent about half the day on it with mediocre results. I would appr=
eciate some pointers.
(defparameter list-1 '((0 . 2... ccc31807
idiomatic lisp style, dealing with local variables619 (12/4/2012 10:12:07 PM) comp.lang.lisp Okay, I'm now spending about an hour a day writing real lisp, enough so that the non-obvious questions come up. Below, I have copied four variables that I use, two functions, SUM-CDR and GOODNESS-1, and example... cartercc(419)
CGI Question #276173 (12/29/2012 4:55:31 PM) comp.lang.perl.misc Question: What type permissions should be assigned to different types of
CGI files and directories?
A Perl language CGI Internet Bulletin Board program is being
developed for use at one of my Web... edgrsprj(81)
Date in CSV/TSV question2540 (1/1/2013 11:56:14 PM) comp.lang.perl.misc I have a Tab Separated File of roughly 1000 likes with the first fields like
"07 Jan 2011" "TFR"
"05 Jan 2011" "DR"
I need change the first field to look like
2011-01-07 "TFR"
2011-01-05 "DR"... nospam198(103)
Rehabilitating bad Perl code728 (1/8/2013 7:37:57 PM) comp.lang.perl.misc I have inherited some code which has uses several horrible constructs,
such as splicing together completely unrelated assignments and
statements with commas, like
$foo = 1, $bar = 2, print "This is ho... news192(134)
including a Perl script in a C executable718 (1/22/2013 3:11:52 PM) comp.lang.perl.misc I have a small C program that displays file attributes, essentially running=
the stat command and emitting the output to the console.
This morning, I have a new requirement -- to nicely format the output, ... cartercc(419)
access to file attributes via inode516 (1/30/2013 1:50:42 PM) comp.lang.c This is a listing named testinode.c:
1 #include
2 #include
3 int main()
4 {
5 char filename[256] = "test.txt";
6 struct stat filestat;
7 stat(filename, &filestat);
8 printf("st_ino is... cartercc(419)