Hi all
I'm having all this problems, can someone help me?
Best Regards
cpan> install CDB_File
CPAN: Storable loaded ok
Going to read /home/oleber/.cpan/Metadata
Database was generated on Thu, 24 Jan 2008 10:31:02 GMT
Running install for module CDB_File
Running make for M/MS/MSERGEANT/CDB_File-
yitzle schreef:
> Windows does not support the "links" that Unix has.
> Windows links have a .lnk extension that you can check for.
Both hardlinks and softlinks are supported, specifically with NTFS.
http://search.cpan.org/search?query=hardlink&mode=module
http://search.cpan.org/search?query=sy
On Jan 24, 2008 3:33 PM, Liam <[EMAIL PROTECTED]> wrote:
> Tom Phoenix wrote:
> > It looks as if you need to fix the system damage, so that your OS is
> > reasonably similar to the configuration that other people have used to
> > build perl. Experts on your OS may be able to help, or you may be ab
[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 you already know the byte
order.
The U+FEFF is then read as the "
From: [EMAIL PROTECTED]
> 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.
> >> > I've been playing wi
Tom Phoenix wrote:
On Jan 24, 2008 2:05 AM, Liam <[EMAIL PROTECTED]> wrote:
It appeared to be the fact that it couldn't read my /home/ directory:
If the /home directory on your system isn't world-readable, I wonder
what other eccentricities may be causing trouble for Perl. Do you have
an ecce
"Jay Savage" <[EMAIL PROTECTED]> writes:
[...] Thanks for the pointers
> 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
"Tom Phoenix" <[EMAIL PROTECTED]> writes:
> On Jan 24, 2008 12:34 PM, <[EMAIL PROTECTED]> wrote:
>
>> Can anyone provide a real example of using File::Monitor?
>
> Aren't the examples in the docs and the t/ directory "real" enough for
> you? There's even a file in the examples/ directory; it look
On Jan 24, 10:12 am, [EMAIL PROTECTED] (Tom Phoenix) wrote:
> On Jan 24, 2008 9:07 AM, <[EMAIL PROTECTED]> wrote:
>
> > I'd like to get the number of keys in hash of hashes. I know that I
> > can do something like $count = keys( %myHash ), but how would I go
> > about finding the number of keys i
I'm at a lost... I still need to do some learning about unicode but
basically 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... I was thinking that the BOM would be striped off
during the open then
On Jan 24, 2008 3:34 PM, <[EMAIL PROTECTED]> wrote:
> What I really want to do is monitor a directory recursively but here
> just trying to use it any basic way to start to `get' how to use it.
>
For starter, you haven't turned on the recurse flag. Take another look
at the arguments to File::Mon
On Jan 24, 2008 12:34 PM, <[EMAIL PROTECTED]> wrote:
> Can anyone provide a real example of using File::Monitor?
Aren't the examples in the docs and the t/ directory "real" enough for
you? There's even a file in the examples/ directory; it looks pretty
real to me. Does it work for you?
http
Can anyone provide a real example of using File::Monitor?
I've been pounding away at perldoc File::Monitor, which seems to be
pretty thoroughly documented but as often seems to happen to me
its just not soaking in... how the scanning and reporting is supposed
to happen. Somehow in the course
Chas,
Worked like a charm! thanks so much for the help :)
Mike
- Original Message -
From: "Chas. Owens" <[EMAIL PROTECTED]>
To: "Mike Blezien" <[EMAIL PROTECTED]>
Cc: "Perl List"
Sent: Thursday, January 24, 2008 1:30 PM
Subject: Re: Reading SQLite db
On Jan 24, 2008 1:49 PM, Mike B
Thank you so much Jeff,
It works!
Best regards,
Onur
Jeff Pang wrote:
-Original Message-
From: Onur Sirin <[EMAIL PROTECTED]>
i get the following error:
Use of uninitialized value in scalar chomp at xxx.pl line 12.
Use of uninitialized value in concatenation (.) or string at xxx.pl
On Jan 24, 2008 1:49 PM, Mike Blezien <[EMAIL PROTECTED]> wrote:
> Hello
>
> I've attached a sqlite db file and have been trying to find a way to read this
> type of file w/Perl. Is there a module or a way with Perl to read/extract data
> from this type of file ??
snip
Use the DBI module with DBD:
Hello
I've attached a sqlite db file and have been trying to find a way to read this
type of file w/Perl. Is there a module or a way with Perl to read/extract data
from this type of file ??
Thx's
Mike(mickalo)Blezien
===
Thunder Rain Internet Publishing
==
On Jan 24, 2008 6:06 AM, <[EMAIL PROTECTED]> wrote:
snip
> > What you are trying to do there won't work and even if it did it would
> > be a bad idea. It appears as if you are trying to modularize your
> > code. There are better ways of doing it than that. If you describe
> > what effect you ar
On Jan 24, 2008 9:07 AM, <[EMAIL PROTECTED]> wrote:
> I'd like to get the number of keys in hash of hashes. I know that I
> can do something like $count = keys( %myHash ), but how would I go
> about finding the number of keys in a sub-hash?
my $count = keys %{ $sub_hash_reference };
You can
On Jan 24, 2008 9:46 AM, <[EMAIL PROTECTED]> wrote:
> Probably horribly obvious I guess but what is the s/// operator
> (s/^-(?=.)//) in the `ARG:' line doing here:
That pattern matches a string beginning with a hyphen, so long as the
hyphen is followed by a non-newline character. The effect of
Just looking at ways to handle cmdline arguments. I know about
getopts but I found this snippet in programming perl book and wanted
to understand better what it is doing.
Probably horribly obvious I guess but what is the s/// operator
(s/^-(?=.)//) in the `ARG:' line doing here:
Also not sure o
On Jan 24, 2008 4:30 AM, Sharon Gilbert <[EMAIL PROTECTED]> wrote:
> REMOVE ME FROM YOUR EMAIL LIST. STOP!!
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> http://learn.perl.org/
I hope you've already tried the simple technique described in the
On Jan 24, 2008 7:49 AM, Rob Dixon <[EMAIL PROTECTED]> wrote:
snip
> >> Of course. Thanks Chas. I think the docs could do with a tweak here.
> >
> > They seem fine to me:
> >
> > from perldoc strict
> >"strict refs"
> > This generates a runtime error if you use symbolic referen
On Jan 24, 2008 2:05 AM, Liam <[EMAIL PROTECTED]> wrote:
> It appeared to be the fact that it couldn't read my /home/ directory:
If the /home directory on your system isn't world-readable, I wonder
what other eccentricities may be causing trouble for Perl. Do you have
an eccentric OS, or an eccen
I'd like to get the number of keys in hash of hashes. I know that I
can do something like $count = keys( %myHash ), but how would I go
about finding the number of keys in a sub-hash?
Alternately, how could I loop through keys in a hash of a hash?
My hash look like:
-Part Number 1
--Type 1 (key)
On Jan 24, 2008 3:06 AM, <[EMAIL PROTECTED]> wrote:
> What I see is that , reference is received in next program but I am
> not able to access the hash after dereferencing it. I was passing the
> hash reference.
No; it's not possible to pass a hash by reference from one program to
another. You a
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.
>> > I've been playing with Linux::Inotify2 and may be able t
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 commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
-Original Message-
>From: Onur Sirin <[EMAIL PROTECTED]>
>i get the following error:
>Use of uninitialized value in scalar chomp at xxx.pl line 12.
>Use of uninitialized value in concatenation (.) or string at xxx.pl line 12.
Please try this:
$ cat 1.txt
aaa
bbb
xxx
$ cat 2.txt
ccc
ddd
Hi Jeff,
i get the following error:
Use of uninitialized value in scalar chomp at xxx.pl line 12.
Use of uninitialized value in concatenation (.) or string at xxx.pl line 12.
my @out = map { chomp; my $f2 = ; chomp $f2; $_ . ' ' . $f2 . ' ' .
<$fh3> } <$fh1>;
Jeff Pang wrote:
-Original Me
-Original Message-
>From: Onur Sirin <[EMAIL PROTECTED]>
>Sent: Jan 24, 2008 10:50 PM
>To: Jeff Pang <[EMAIL PROTECTED]>
>Cc: beginners@perl.org
>Subject: Re: merging the columns
>
>What if is there another file (fh3) to merge with fh1 and fh2?
>How should i fix that line: my @out = map
Oh that's great,
thank you
What if is there another file (fh3) to merge with fh1 and fh2?
How should i fix that line: my @out = map { chomp; $_ . ' ' . <$fh2> }
<$fh1>;
regards,
Jeff Pang wrote:
One solution,see the code and result below:
$ cat 1.txt
aaa
bbb
xxx
$ cat 2.txt
ccc
ddd
yy
<[EMAIL PROTECTED]> wrote:e solution for this?
> What I see is that , reference is received in next program
> but I am not able to access the hash after dereferencing it.
> I was passing the hash reference.
Ever since memory management units (MMU) became all the rage,
processes (or program if yo
One solution,see the code and result below:
$ cat 1.txt
aaa
bbb
xxx
$ cat 2.txt
ccc
ddd
yyy
$ cat t1.pl
use strict;
use warnings;
open my $fh1,'1.txt' or die $!;
open my $fh2,'2.txt' or die $!;
my @out = map { chomp; $_ . ' ' . <$fh2> } <$fh1>;
close $fh1;
close $fh2;
print @out;
$ perl
On Jan 8, 7:05 pm, [EMAIL PROTECTED] (Chas. Owens) wrote:
> On Jan 8, 2008 4:32 AM, Siva Prasad <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi Gurus,
>
> > Iam getting problem in accessing the array reference which is passed as
> > command line argument to a perl script from another perl script
>
> > I ha
Hi all,
i have two snmp-walk commands and i want to merge its output in one file.
For example,
_First command's output:
_aaa
bbb
xxx
_Second command's output:
_ccc
ddd
yyy
How can i merge these outputs like
aaa ccc
bbb ddd
xxx yyy
Thanks,
Onur
--
Onur Sirin
IT Department, Systems Specialist
S
Hi
On Linux, I can use "-l" to judge whether a file is a soft link and use
readlink/Cwd::realpath to get its real path. But on windows (activeperl),
seems both function do not work. Is there a way to do this for me?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
Chas. Owens wrote:
>
On Jan 23, 2008 10:29 PM, Rob Dixon <[EMAIL PROTECTED]> wrote:
>>
Chas. Owens wrote:
On Jan 23, 2008 10:07 PM, Rob Dixon <[EMAIL PROTECTED]> wrote:
Along these lines, can someone explain to me why
use strict 'vars';
my $name = 'data';
print foreach @$name;
p
REMOVE ME FROM YOUR EMAIL LIST. STOP!!
- Original Message -
From: <[EMAIL PROTECTED]>
To:
Sent: Wednesday, January 23, 2008 9:29 PM
Subject: beginners Digest 24 Jan 2008 03:29:13 - Issue 3371
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PRO
Tom Phoenix wrote:
On Jan 18, 2008 4:11 PM, Liam <[EMAIL PROTECTED]> wrote:
I was trying to install a personal version of Perl to my own user
folder. I am running on a remote webserver that uses Apache. I have
succeeded with the following steps:
wget http://perl.com/CPAN/src/stable.tar.gz
ta
On Jan 23, 9:14 am, [EMAIL PROTECTED] (Tom Phoenix) wrote:
> On Jan 22, 2008 8:51 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > print $query->redirect("mytest.cgi?ID=$value");
> > and I am still not getting the $value to show up.
>
> Does the program here work for you when you run it from
Ow Mun Heng wrote:
I'm wondering there's a simpler was to achieve this w/o need to jump
through a couple of hoops. (meaning, concatenate the fields together
from extract or some other method)
Timestamp : '2008-01-17 10:24:00'
Output needed : 20080103 or even 200801w3
use POSIX;
use Dat
42 matches
Mail list logo