Re: Edit properties for MS-Office files

2004-12-15 Thread Bee
Thanks Jenda, That would be a big hint, but something I don't understand from yours provided example, how do you know there's a class called {PaperSize} ? What if I wanna do is just modifying the word or powerpoint 's author, last modify date, last saved person, company et

Edit properties for MS-Office files

2004-12-14 Thread Bee
that possible ? Thanks in advise, Bee

Re: Difference between perl module and perl package

2004-11-14 Thread Bee
why you can call a module without "module.pm". Note, module can call other module as well, not just ".pl" can call modules. HTH, Bee - Original Message - From: "Harbhajan Julka" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, Novembe

Re: Is that a DB server need to be installed ?

2004-11-04 Thread Bee
How would MySQL compare with DBD::SQLite ? I hope I can deal with as lease as the outter things... more apperciate situation is without install other stuff, but sort of modules. Thanks in advise, Bee - Original Message - From: "Mark Day" <[EMAIL PROTECTED]> To: &

Re: Is that a DB server need to be installed ?

2004-11-04 Thread Bee
Thanks ! That's quite a nice hint~ I 'll digging in for more that I suppose want to look for~~ Thanks, Bee - Original Message - From: "NYIMI Jose (BMB)" <[EMAIL PROTECTED]> To: "Bee" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thu

Re: Mass Editing 125 files

2004-11-03 Thread Bee
One more note, your loop and substitution can be simpliy like this : for my $i ( 0.. $#files ) { open FH, >>$files[$i] or die $!; { while () { tr/1/5/; print } close FH ; # I think close FH is quite important here... } HTH, Bee - Original Message - From: "Da

Re: Mass Editing 125 files

2004-11-03 Thread Bee
"zone.file3.com" ) # A semi-colon missed here for ( my $i . ) HTH, Bee - Original Message - From: "Dave Kettmann" <[EMAIL PROTECTED]> To: "Perl List (E-mail)" <[EMAIL PROTECTED]> Sent: Thursday, November 04, 2004 6:28 AM Subject: Mas

Is that a DB server need to be installed ?

2004-11-03 Thread Bee
data and some CLOB.. TIA, Bee

Re: Which perldoc discuss about loops ?

2004-11-03 Thread Bee
Thanks Jenda ! Got it now =) - Original Message - From: "Jenda Krynicky" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 04, 2004 5:57 AM Subject: Re: Which perldoc discuss about loops ? > From: "Bee" <[EMAIL PROTEC

Which perldoc discuss about loops ?

2004-11-03 Thread Bee
Hi, Just a quick question, which perldoc talking about loops ? for, while, do until... ? I just can't find it out TIA, Bee

Re: help me

2004-10-30 Thread Bee
g = RMD::ForgotPass ( $argument ); That mean a module RMD is included and the script is going to use the sub (function) 'ForgotPass' inside package RMD. > 3) defined keyword > perldoc -f defined HTH, Bee -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Executing perl scripts with a perl script

2004-10-30 Thread Bee
I guess you may also want to look up something from : perldoc perlmod perldoc perlmodlib perldoc perlmodstyle It tells how to make scripts become a package and be highly reusable. HTH, Bee - Original Message - > I have serveral perl scripts that I've written seperately. Now I wan

Re: How to empty the buffer

2004-10-24 Thread Bee
question : undef $msg2 ; or $msg2 = undef; HTH, Bee - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, October 24, 2004 6:36 PM Subject: How to empty the buffer Hi I have written a program to add the strings. Now after every executi

Re: How to store the out put in StringBuffer

2004-10-23 Thread Bee
ould you show some data you are dealing with ? Regards, Bee - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 23, 2004 7:06 PM Subject: How to store the out put in StringBuffer Hi Say I have program like this If I Say print

Re: tie problem ( Work out, but sounds weir )

2004-10-22 Thread Bee
c -m Tie::Handle and perldoc -f tie Do I require to read some more to understand how tie works and what's going on if I tie my STDOUT ? Note, I am on Win2K. Please please give me some idea, thanks, Bee -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Regular expression help

2004-10-22 Thread Bee
ne . "\n"; my @d = split /\x00/, $line; print "<$_> " for @d; But only if you sure that char is not exist with the data string, you can use. Otherwise, use other approach, or other delimiter. > > Also, why is $y[0] undefined or null, scalar (@y) is 6. I don't

Re: tie problem

2004-10-21 Thread Bee
l can't print. and I even can't do anything inside this block. Just simply print "." My shell got crash. Anything I print from this block, Windows will shut it down and tell there is an error, What happen ?! Thanks for help, Bee -- To unsubscribe, e-mail: [EMAI

tie problem

2004-10-21 Thread Bee
ss or what ? Then I put a die "can't tie $!" after tie, it really dies, but $! have nothing on it. I do expect that I will have either with STDOUT or not will results to print * . What's wrong here ? And how can I make it done ? Thanks, Bee

Re: Parsing multiline data

2004-10-21 Thread Bee
What a mistake !! Thousands sorry... ( I can't forgive myself ) ~^.^~ Bee -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Parsing multiline data

2004-10-20 Thread Bee
use strict; open F, "sourcefile.txt"; local $/ = "\n\n"; my @sections = ; close F; print "Section $_ :\n $sections[$_]\n\n" for @sections; HTH, Bee - Original Message - From: "Kevin Old" [EMAIL PROTECTED] To: <[EMAIL PROTECTED]> Sen

Re: Why are file handles wierd?

2004-10-16 Thread Bee
\$scalar; while (not eof $FH) { do_something... }; close $FH; Does it help ? Bee -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: re-format database file

2004-10-14 Thread Bee
; # read the blank line and let it be passed @data = () # clear @data for the next user } push @data, $ln; } print "$_\n" for @result; Note the code not tested, but guess the flow would be like this. Try modify it if you want it be in write-format ways. HTH, Bee -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Simple OO problem ... Updated

2004-10-08 Thread Bee
shift; $self -> {ID} = shift; $self -> {Pass} = shift; bless $self; return $self; } 1; Follow up on my previous post, I've get my thing cloned, but.. Is it right way to make a clone like this ? Any more standard way to get the same job done ? Thanks in advise, Bee PS. I have no

Re: global matching

2004-10-08 Thread Bee
quot;", ; @digits = $lines =~ /-*?\d+/g; or my @digits ; while () { my @get = $_ =~ /-*?\d+/g; push @digits, @get } print @digits HTH, Bee -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Global variables / special variables / variable identifier with just one character

2004-10-08 Thread Bee
from my PC, but $a and $b are normally using for sorting array more then just lexcal sorting. @sorted = sort { $a <=> $b} @unsorted ; perldoc -f sort HTH, Bee

Re: Simple OO problem ...

2004-10-08 Thread Bee
pieces of hints. Just like a blind guy trying walk through a door in a new place, just keep on hitting on the wall until get passed. I know I really not sensiable to read documents with full of terminologies. So I opt to try on codes. I know thaz an hard way or not the level for me to step into the OO world, but I still would say that's a nice try with helping from buddies from this list. Thanks again ! Bee -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Simple OO problem ...

2004-10-08 Thread Bee
(blessed) thing ? So when I modify something in $y , and not affecting $z ? Thanks in advise, Bee

Re: Open file with default application software on Windows ?

2004-10-07 Thread Bee
> Win32::Registry ro Tie::Registry to do the same. Find the type from > HKEY_CLASSES_ROOT\.ext, go to HKEY_CLASSES_ROOT\\Shell and > list the subkeys. > A very nice hack, It leads me to imagine lot more possibilities, such as printing invoice when a sale get confirmed ... So glad to hear about this !! Many many thanks for the tips!! Bee -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Finding a file

2004-10-07 Thread Bee
> differ) How can I find the file in any tree or directory. perldoc -m File::Find perldoc -f glob perldoc -f opendir perldoc -f readdir > > Second : > I want to delete the normal.dot and replace it with the normal.dot that perldoc -f unlink perldoc -m File::Copy HTH,

Re: Open file with default application software on Windows ?

2004-10-07 Thread Bee
Thanks thanks, a very nice lesson again !! Feel quite sorry that I even never heard about this command for using windows after so many years... Thousands thanks, Bee - Original Message - From: "Bob Showalter" <[EMAIL PROTECTED]> To: "'Bee'" &l

Re: Open file with default application software on Windows ?

2004-10-07 Thread Bee
Wow !! As you mentioned, thaz EXACTLY what I want :-)) Thousands Thanks !!! Bee - Original Message - From: "David le Blanc" <[EMAIL PROTECTED]> To: "Bee" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, October 07, 2004 7:11 PM Subject:

Open file with default application software on Windows ?

2004-10-07 Thread Bee
the image will open with photoshop. defOpen 'C:\temp.doc' or die "$!" ; # then the document will open with Word. I've made this done by writting a batch like code.. but I sure that's unsafe and unportable. Thanks for any hint, Bee

Re: newbie stuck in a HOA

2004-10-05 Thread Bee
uot;CANCELED" : "OKAY"; print "\n\n --- $status -------- \n"; print "$_ : $course{$code}[$_] \n" for (0..8) } HTH, Bee - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 06, 2004 4:32 AM

Re: newbie stuck in a HOA

2004-10-05 Thread Bee
for my $i ( 0.. $#{$course_info{$item}} ){ > print("$i: $course_info{$item}[$i]\n"); > } > > } > > > else{ > print("\n\nOKAY $item \n"); > for $i (0 .. $#{ $course_info{$item} } ){ for my $i ( 0.. $#{$course_info{$item}} ){ > print(

Binary file and pack... What do I have now ?! Feeling lost...

2004-09-15 Thread Bee
First, I have to say thank you for those buddies that replies my thread on Conceptual question about pack. I just back from from vocation, so say howdy... For pack, I have do some more experiments, and I guess I could gereralize something... but that's quite a terrible founding, very far out of

Re: Conceptual questions about 'pack'

2004-09-13 Thread Bee
> > > > - besize template 'aAuU', anything else tempplate I can use to > > > > prepare fix length data ? - if yes, but how do I assuming the > > > > block size is? In case, if I write a binary file and I wanna > > > > use seek. > > > > > > You are going to have to explain that in

Re: Conceptual questions about 'pack'

2004-09-13 Thread Bee
> Have you read the pack and unpack tutorial? > > perldoc perlpacktut Thanks for this, I missed this one. > > > > Q1. Can I expect that pack can do this for me ? > > - compress a text file in smaller size > > You could implement a compression algorithm with pack/unpack, if you really > w

Conceptual questions about 'pack'

2004-09-12 Thread Bee
Hi, I am very newbie for using the function 'pack', and here I have some questions : Q1. Can I expect that pack can do this for me ? - compress a text file in smaller size - besize template 'aAuU', anything else tempplate I can use to prepare fix length data ? - if yes, but how do I a

Re: How to dynamically taking the multiple input arguments?

2004-09-10 Thread Bee
> > Opps, I missed that. Instead of: > > @results = map { my $line = $_; chomp $line; $line =~ s/\s+//g; $line } (@data); > > try: > > my @newresults = map { my $line = $_; chomp $line; $line =~ s/\s+//g; > > shift (@results) . $line } (@data); > > @results = @newresults; > > > > -David This work

Re: How to dynamically taking the multiple input arguments?

2004-09-10 Thread Bee
> Ok ... Thanks for helpin' out, HTH! I tried out your suggestions and > now the code looks like this: You are welcome, but my name is Bee, HTH stands for 'Hope This Help' > > #!/usr/bin/perl > use warnings; > use strict; > > unless( @ARGV >= 2 )

Re: How to dynamically taking the multiple input arguments?

2004-09-10 Thread Bee
> >foreach( @ARGV ) { > > open IN, $_ or die "Couldn't open $_: $!\n"; > > chomp( my @data = ); > > close IN; > > foreach( @data ) { s/\s+//g; } > > foreach( 0..$#data ) { $results[$_] .= $data[$_]; } > >} > This is a little shorter and saves on iterations: > for m

Re: how to skip new line character

2004-09-09 Thread Bee
open F, "file.txt"; my @file = ; chomp @file; print "@file"; Is that what you want ? - Original Message - From: "Anish Kumar K." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 09, 2004 2:41 PM Subject: how to skip new line character Hi All As a beginner in PERL,

Re: Foo (Bar)

2004-09-08 Thread Bee
in short , foo bar baz etc. just mean 'something', 'another something' whatever is discussing about.for more, check results in google.com for 'metasyntactic variables' HTH - Original Message - From: "jason corbett" <[EMAIL PROTECTED]> To: "perl beginners" <[EMAIL PROTECTED]> Sent

Re: Using reference or throw valuables to sub ?

2004-09-08 Thread Bee
Thank you guys for clearing my concept, I know what to do now ! - Original Message - From: "Jenda Krynicky" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 08, 2004 8:45 PM Subject: Re: Using reference or throw valuables to sub ?

Using reference or throw valuables to sub ?

2004-09-08 Thread Bee
Say I have an array that carries at least 2mb data or 70mb max, but in my code, I want to throw this array to another sub ( within the same package )for further operations . so, which one I would better to use and what's the reason ? gosub [EMAIL PROTECTED] or gosub @array Is that if I throw

Re: A --- What this kind of meaning is ?

2004-08-17 Thread Bee
O! Thanks alot, that just simply the formatting codes, simple ! Thank you. - Original Message - From: "Gunnar Hjalmarsson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 18, 2004 2:11 AM Subject: Re: A --- What this kind of meaning is ? &g

A --- What this kind of meaning is ?

2004-08-17 Thread Bee
Through out the perldoc, I always see something like this : B, F. something like that, would anybody tell me what this kind of thing is ? or any reference I can know more about this kind of phrases are ? TIA

Re: Strange result from LWP::UserAgent, how to extract ?!

2004-08-15 Thread Bee
Thanks a lot, all are giving the answers that I want, thanks !!! - Original Message - From: "Gunnar Hjalmarsson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 15, 2004 12:34 AM Subject: Re: Strange result from LWP::UserAgent, how to extract ?! &

Strange result from LWP::UserAgent, how to extract ?!

2004-08-14 Thread Bee
I have the following code : require LWP::UserAgent; my $ua = new LWP::UserAgent; my $result = $ua -> get('http://somewhere .com'); When I print $ua, I got :LWP::UserAgent=HASH(0x1a953c4) When I print $result, I got HTTP::Response=LWP::UserAgent=HASH(0x1a953c4) What's that mean ? And how can I e

True IP behind a router?

2004-03-10 Thread Bee
Hi, Is there any modules can check my true IP( NOT 192.168.x.x ) I am on while I am behind a router? Thanks in advise

Can Perl run on Windows CE or Palm?

2004-01-26 Thread Bee
Hi all, and Happy new year to East Asians folks here, I have an idea to buy a pocket pc, but before I buy it, I hope to confirm something... 1. Can Perl run on Windows CE or Palm ( Same as subject ) 2. If I can, Is there any modules would helpful on develope my script for these platforms ? 3. C

Re: Integer out of range.....

2003-12-31 Thread Bee
Thanks a lot, Rob. Thaz exactly what I am looking for... =) - Original Message - From: "Rob Dixon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 01, 2004 4:12 AM Subject: Re: Integer out of range. > Bee wrote: > > > > A

Integer out of range.....

2003-12-31 Thread Bee
Anything I can do to working like this ? print for ( 0.. 3410068347520) ; Thanks in advise

Capture a range from a mp3 track ?

2003-11-17 Thread Bee
I am trying to write a script which plays a range (input) from a mp3 file. Simply to say, a mp3 file is divided into 3 session, Audio data, audio header, and IDvX tags. What I will deal with my script is to get the bit rate from the header, and calc the start-end position of the data from the aud

Re: Simple CGI question

2003-11-06 Thread Bee
You would like to use this : in your html page of your right frame. Hope this help - Original Message - From: "Jack" <[EMAIL PROTECTED]> To: "CGI1" <[EMAIL PROTECTED]> Sent: Friday, November 07, 2003 8:11 AM Subject: Simple CGI question > Hello, > > I'm trying to redirect th

Re: Why can't I create a binary file ?

2003-11-06 Thread Bee
> Bee wrote: > > open FH, ">1.txt"; > > binmode FH; > > binmode STDOUT; > > print FH "123m,zxnc,mzxnc,mzncm,zxc"; > > close FH; > > > > Why the output still a text file ? > Thanks everybody, the way I tried to make fi

Why can't I create a binary file ?

2003-11-06 Thread Bee
open FH, ">1.txt"; binmode FH; binmode STDOUT; print FH "123m,zxnc,mzxnc,mzncm,zxc"; close FH; Why the output still a text file ?

Re: Module location

2003-10-16 Thread Bee
> Depens on the OS. > > You may send the PERL5LIB system variable to something. > > If you happen to use ActivePerl you may also add library directories > via the registry HKEY_LOCAL_MACHINE\Software\Perl. The values of > "lib", "sitelib", "lib-" and "sitelib-" > will be added to your @INC.

Re: Module location

2003-10-16 Thread Bee
x27;mypath' ? Thanks - Original Message - From: "Jenda Krynicky" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 16, 2003 11:25 PM Subject: Re: Module location > From: "Bee" <[EMAIL PROTECTED]> > > Is there anyway to l

Module location

2003-10-16 Thread Bee
Hi all, Is there anyway to look up the current module's full path via syntax or dollar sign vars ? Thanks

2 newbie questions

2003-10-10 Thread Bee
hello all, I've just start my learning on perl, and recently still learning some basic syntax. So I hope my question is still making sense. I am now learning about how to write files and wondering is that possible to inserting / overwriting bytes in files ( text / binary ). and I am on Win32. A