Re: dealing unicode output

2008-01-25 Thread [EMAIL PROTECTED]
On Jan 25, 10:30 am, [EMAIL PROTECTED] (Chas. Owens) wrote: > On Jan 25, 2008 10:06 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > snip> Great! both worked. The thing I still don't understand is that in the > > file the BOM is FFFE not FEFF > > snip > > This is because it is little endian, if

Re: Can't install CDB_File

2008-01-25 Thread Chas. Owens
On Jan 25, 2008 12:46 PM, marcos rebelo <[EMAIL PROTECTED]> wrote: > Hy all > > I'm using the last Ubuntu. > > What shell I ask to the apt? > > Thanks for the help > Marcos snip apt-get install build-essential should get you the full GCC toolchain including the glibc headers. -- To unsubscribe,

Re: About File::Monitor

2008-01-25 Thread Tom Phoenix
On Jan 25, 2008 9:20 AM, <[EMAIL PROTECTED]> wrote: > How long of a sleep would be required to *KNOW* a change has happened > with something external writing to files? You want to be sure the other task is finished? Several days of waiting should suffice for better than 99.999% of all cases. If

Re: Can't install CDB_File

2008-01-25 Thread marcos rebelo
Hy all I'm using the last Ubuntu. What shell I ask to the apt? Thanks for the help Marcos On Jan 25, 2008 1:38 PM, Chas. Owens <[EMAIL PROTECTED]> wrote: > On Jan 25, 2008 1:39 AM, marcos rebelo <[EMAIL PROTECTED]> wrote: > > Hi all > > > > I'm having all this problems, can someone help me? > >

Re: 答复: is there a way to read content from lnk on windows?

2008-01-25 Thread Tom Phoenix
2008/1/25 Chen Yue <[EMAIL PROTECTED]>: > I fully understand this. So I wonder is there a way to get the path that the > blabla.lnk points to? You'd think so; symbolic links have a simple implementation on Unix-like machines. Besides, Windows itself can figure it out. Unless Microsoft have hidden

Re: About File::Monitor

2008-01-25 Thread reader
"Jay Savage" <[EMAIL PROTECTED]> writes: > Finally, Tom's points are important. How do you *know* that the files > (in this case a single directory) changed *during the sleep*? Do you > know that the output wasn't buffered? That the system didn't delay the > writes for some reason? That you were e

Re: Can't Install Perl as Non-Root

2008-01-25 Thread Peter Scott
On Fri, 25 Jan 2008 09:33:49 +1000, Liam wrote: > This is not my server, it is a webhosting server, so I have no way of > modifying those settings, or getting them to modify them. There HAS to > be another way. Keep in mind, that I am a subaccount of a webhosting > account, so I don't have tha

Re: creating multiple variables in loop

2008-01-25 Thread Paul Lalli
On Jan 25, 12:25 am, [EMAIL PROTECTED] (Sonal Singhal) wrote: > So, what I want to do is go through an existing array and break the array > into mini-arrays at any certain points (where the diff. in two bordering > values are greater than 2000).  I programmed it as a recursive function, but > I nee

Re: Monitor a directory for file creation

2008-01-25 Thread Charlie Farinella
On Thursday 24 January 2008, [EMAIL PROTECTED] wrote: > Charlie Farinella <[EMAIL PROTECTED]> writes: > > > On Wednesday 16 January 2008, Peter Scott wrote: > >> On Tue, 15 Jan 2008 15:13:29 -0500, Charlie Farinella wrote: > >> > I need to monitor a directory and when a file is created, modify it

Re: dealing unicode output

2008-01-25 Thread Chas. Owens
On Jan 25, 2008 10:06 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: snip > Great! both worked. The thing I still don't understand is that in the > file the BOM is FFFE not FEFF snip This is because it is little endian, if it were a big endian file it would be FEFF. The character is the same,

Re: dealing unicode output

2008-01-25 Thread [EMAIL PROTECTED]
On Jan 24, 7:35 pm, [EMAIL PROTECTED] (Dr.Ruud) wrote: > [EMAIL PROTECTED] schreef: > > > [...] I'm reading an unicode utf-16le file and have successfully > > done so but with one issue. When I print the first line of input the > > BOM is still there... > > By specifying the "le", you express that

答复: is there a way to read content fro m lnk on windows?

2008-01-25 Thread Chen Yue
Hi I fully understand this. So I wonder is there a way to get the path that the blabla.lnk points to? -- Windows does not support the "links" that Unix has. Windows links have a .lnk extension that you can check for. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: Can't install CDB_File

2008-01-25 Thread Chas. Owens
On Jan 25, 2008 1:39 AM, marcos rebelo <[EMAIL PROTECTED]> wrote: > Hi all > > I'm having all this problems, can someone help me? > > Best Regards > snip > /usr/lib/perl/5.8/CORE/perl.h:420:24: error: sys/types.h: No such file > or directory > /usr/lib/perl/5.8/CORE/perl.h:451:19: error: ctype.h: N

Re: passing array reference from one perl script to another perl scirpt

2008-01-25 Thread Rob Dixon
praveen mall wrote: > Idea is good to turn one script as a module. But I can not do anyhow. What I want to achieve is: There are two script. From first script I need to call the second program and in second program I want to receive the hash. I have complete hash in first program and calling se

RE: passing array reference from one perl script to another perl scirpt

2008-01-25 Thread Nagrale, Ajay
Passing hashes between the scripts would be useful using GDBM files..Hashes would be stored internally. You can directly load and change the contents. It's easy to handle. But, gdbm files have their own disadvantages when you keep on adding and deleting the data. Try this out. This might help.

Re: creating multiple variables in loop

2008-01-25 Thread Rob Dixon
Sonal Singhal wrote: > So, what I want to do is go through an existing array and break the array into mini-arrays at any certain points (where the diff. in two bordering values are greater than 2000). I programmed it as a recursive function, but I need to store all these "mini-arrays" and be abl

Re: passing array reference from one perl script to another perl scirpt

2008-01-25 Thread Chas. Owens
On Jan 25, 2008 4:45 AM, praveen mall <[EMAIL PROTECTED]> wrote: snip > There are two script. From first script I need to call the second program > and in second program I want to receive the hash. I have complete hash in > first program and calling second program by system call by passing hash > r

Re: Why is first line always missing ?

2008-01-25 Thread Chas. Owens
On Jan 24, 2008 11:19 PM, <[EMAIL PROTECTED]> wrote: snip > I have a html file with some junk after > So I am trying to clean it. > > This is how I started out. Its inside a unix shell script so I must > test on a command line like this: > > % cat file.html | perl -ne '{$/="" ; if ($_ =~ m##i) >

Re: Why is first line always missing ?

2008-01-25 Thread John W. Krahn
[EMAIL PROTECTED] wrote: I am a total newbie in perl Hello and welcome. I have a html file with some junk after You might want the htmlclean program: http://search.cpan.org/~lindner/HTML-Clean-0.8/bin/htmlclean Or the HTML::Clean module: http://search.cpan.org/~lindner/HTML-Clean-0.8/lib

Re: passing array reference from one perl script to another perl scirpt

2008-01-25 Thread praveen mall
Idea is good to turn one script as a module. But I can not do anyhow. What I want to achieve is: There are two script. From first script I need to call the second program and in second program I want to receive the hash. I have complete hash in first program and calling second program by system c

Re: creating multiple variables in loop

2008-01-25 Thread Sonal Singhal
So, what I want to do is go through an existing array and break the array into mini-arrays at any certain points (where the diff. in two bordering values are greater than 2000). I programmed it as a recursive function, but I need to store all these "mini-arrays" and be able to sort them easily by

Why is first line always missing ?

2008-01-25 Thread gnuist006
I am a total newbie in perl I have a html file with some junk after " ; if ($_ =~ m##i) { print $_ } }' OK I wrote it by imitating other examples. I dont know why I use switch -n . These are not described in man perl. It only lists all switches in syntax line. It always miss the top line. I