Re: [perl] glob() and filenames w/ spaces

2001-04-24 Thread Juan Fuentes
very useful for my situation, so I need this property. > > So, is there any way to make glob("*") smart about files with spaces in > their names? Hmmm try this, works for me: perl -we 'print join " ", glob("*");' I prefer: perl -we 'print $_,"

Re: Simple c program won't compile

2001-03-06 Thread Juan Fuentes
een that one before? My take is that foo, and bar works as expected and baz on my tests gets the environment variables that are set. Is this correct? Juan Fuentes

Re: Simple c program won't compile

2001-03-05 Thread Juan Fuentes
gt; $ gcc thick.c > /tmp/ccU9fgSr.o: In function `main': > /tmp/ccU9fgSr.o(.text+0x16): undefined reference to `sqrt' > collect2: ld returned 1 exit status > > > What is wrong? > > Thanks, > > Mark. Mark you need to link to math library: gcc -g thick.c -lm -o thick And main should be: int main(int argc, char **argv); HTH, Juan Fuentes

Re: [OT] perl regex problem

2001-02-06 Thread Juan Fuentes
a/;' junk I'm not sure what you want the result to be but here are my two assumptions: 1.) You want perl to print yup 4 times ie. 0a0a is 1 unit, there are four yup; so here is how i did it: perl -ne 'print "yup\n" if /(\x0a)$1/;' junk result: yup yup yup yup 2.) You just want one yup meaning yes there is an x0a in there: perl -ne 'print "yup\n"; last, if /\x0a/;' junk result: yup I hope this helps. Juan Fuentes

Re: OT-Best C users list?

2001-01-08 Thread Juan Fuentes
an find the list archives here: http://www.listbot.com/archive/linuxCprogramming HTH, Juan Fuentes

Re: 2 linksys NICs

2000-12-16 Thread Juan Fuentes
he binary, i also would give you the modification i did, but i lost them do to a crash, and the false sense that i had backed'em up, when in reality i didn't, i also submitted a patch to Mr. Donald Becker, but he hasn't implemented it or just didn't like it don't know haven't heard from him. Sorry i couldn't be of more help, Juan Fuentes

Re: Debian's default vim.

2000-10-13 Thread Juan Fuentes
sor keys to move around. > > If anyone has any ideas how to config vim for such I'd greatly > appreciate it. > In your .vimrc type: set showmode That should do it. HTH, Juan Fuentes

Re: Mutt's Editor

2000-10-13 Thread Juan Fuentes
me package installed, i'm not sure on the path, i compiled vim myself and use this path, i use vim6.0h Beta. Juan Fuentes

Re: Ispell and Vim

2000-10-12 Thread Juan Fuentes
* Francois Fayard ([EMAIL PROTECTED]) wrote: > Thanks > But I want vim to reload the new file with the correction. > > Hmm yes i missed that subtle part :-), try Ispell.vim you can find it here: http://home.tu-clausthal.de/~mwra/vim/Ispell.vim HTH, Juan Fuentes

Re: Ispell and Vim

2000-10-12 Thread Juan Fuentes
* Juan Fuentes ([EMAIL PROTECTED]) wrote: * Francois Fayard ([EMAIL PROTECTED]) wrote: > Hi, > > I want to use ispell under vim. That is map a key to run ispell with the > current file and save the result in this file. Do you know how I can do > such a thing ? > > Franc