Re: installing module in Strawberry perl

2020-08-30 Thread Somu
i did it already. And installation was fine. Even then the problem persists. On Sun, Aug 30, 2020 at 3:22 PM Chankey Pathak wrote: > Install the Win32::GUI module from cpan > > $ cpan Win32::GUI > > On Sun, 30 Aug, 2020, 3:19 PM Somu, wrote: > >> Hi all! >> Please

installing module in Strawberry perl

2020-08-30 Thread Somu
Strawberry/perl/site/lib C:/Strawberry/perl/vendor/lib C:/S #trawberry/perl/lib) at window.pl line 1. #BEGIN failed--compilation aborted at window.pl line 1. -- Somu.

Re: Searching Hash for contents of Array

2012-05-01 Thread Somu
7;s so that my @ignoreIPs would look something like > this: > > my @ignoreIPs = ("19.147.172.133-136", > > "200.147.172.135", > > "75.147.172.2[123].$"); #a regular expression > > > > I understand it migh

Re: Net::SMTP

2012-04-24 Thread Somu
7;t work. > > use Net::SMTP::TLS; > > And make sure you are using these information >Host => 'smtp.gmail.com', >Hello=> 'gmail.com', >Port => 587, >User => 'x...@gmail.com', > > &g

Re: Net::SMTP

2012-04-24 Thread Somu
eneath the surface... On Tue, Apr 24, 2012 at 6:26 AM, Michael Rasmussen wrote: > On Tue, Apr 24, 2012 at 01:54:15AM +0530, Somu wrote: > > Hi everyone... > > Why isn't it happeing!!?? > > > > Just the code from Net::SMTP docs > > > > ___

Net::SMTP

2012-04-23 Thread Somu
Hi everyone... Why isn't it happeing!!?? Just the code from Net::SMTP docs __ use strict; use warnings; use Net::SMTP; #these 3 lines bring the output mx.google.com # my $smtp = Net::SMTP->new('smtp.gmail.com') or die $!; # print $smtp->do

perl2exe

2012-04-18 Thread Somu
rlier(back in 2006) when i was working with ActiveState Perl But now i'm a beginner again, using Strawberry Perl. Somu.

Re: Regex again..

2012-04-14 Thread Somu
okay okay okay Let me smile a bit first. I'm a newbie, a kid. [?][?][?] I'm still new to the intricacies of regular expressions. Maybe some day i will succeed in crossing 3000kms on foot in 24hours. hahahaha. Thank you all. *I finished the job using HTML::Strip much earlier* <<338.gif>><<

Re: Regex again..

2012-04-14 Thread Somu
OK. Can i ask "WHY?" Why can't it be done using regex. Isn't a html file just another long string with more, but similar special characters?? Somu

Re: Regex again..

2012-04-14 Thread Somu
Sir, what is this??: lynx -stdin -dump < in.html > out.txt For now, the job got done by HTML::Strip @Zheng Du, will try your suggestion, but the other files maybe big for one variable?(these are files containing words and meaning) Somu.

Regex again..

2012-04-14 Thread Somu
material is to beincluded in commercial products, Project Gutenburg should becontacted first. There are no restrictions for personal or researchuses of this material. | | | | | | | | | | | | | | | | | | | | | | | | |OPTED v0.03can also be downloaded as a.(7.1MB/ 19.1M unpacked) ** *Why is there no uniformity in matching?? What is wrong here??* *_* * * * * *Thanks in advance,* *Somu.*

Re: Create, Merge and work with tables in MS WOrd Documents Win32::Ole

2012-04-12 Thread Somu
t a method to put all the table visible? > I want my table in this way but i dont know what kind of methods are > available in the Win32::Ole... Existe some kind of web or documentation to > search this methods? > > ---- > | Blue| Red |green | > - > |___|_|___| > |*Other colors *_| > |_| > > Thanks so much > -- Love, Somu, http://lose.yourself.mcommunity.biz http://fidel.castro.peperonity.com

Re: pod2html

2012-04-11 Thread Somu
Thank you all. I wanted the docs offline, as they are already in the modules. Why go online all the time? The perldoc generated file shows the start page, but goes online on clicking any link. PODWEBSERVER suits me well. It provides me with browsing all modules documentation offline with http::/loc

pod2html

2012-04-11 Thread Somu
I want to see the documentation of a module named Tk i installed recently. I wish it were in html format for better reading. I'm unable to get the best out of it in DOS mode. Is pod2html helpful? If yes then how do i use it? I tried "perldoc pod2html" but couldn't understand properly.. Somu

Re: regex

2012-04-09 Thread Somu
WOW!!! Still to see the world... Thanks :) On Mon, Apr 9, 2012 at 4:04 AM, John W. Krahn wrote: > Somu wrote: > >> Hello everyone... >> > > Hello, > > > Thanks for the previous replies. I'm really improving! >> A new problem.. >> >>

Re: regex

2012-04-08 Thread Somu
yes... Maybe have to work with this only... Thanks $word =~ /^((un|in).{3}|non.{2})$/

regex

2012-04-08 Thread Somu
).{3}.+$' What do i do about the words starting with "non" because it has one more letter than un or in -- Love, Somu,

chomp

2012-04-05 Thread Somu
" or die; print "\n\n\tReading file names in $path"; print "\n\n\tFiles are :\n"; foreach ( @files ){print;print"\n";} print "\n\n"; system('pause'); What's going on?? Somu.

Finding a prime number

2012-03-27 Thread Somu
x++; } if ($count >=3 ){ print "\n\n$no is prime"; } else{ print "\n\n$no is not prime"; } } print "\n\n"; system "pause"; # end -- Love, Somu, http://lose.yourself.mcommunity.biz http://fidel.castro.peperonity.com

Re: ::Find and no_chdir

2007-09-27 Thread Somu
Check for each name if it is a directory by -d $fname and then print it if it returns false. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Process ID

2007-09-24 Thread Somu
I meant untie $process ; instead of the close function. In the docs, it says untie is better than close. Why is it so? I only use untie while closing perl database hashes.. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: AFAIK

2007-09-24 Thread Somu
I knew LOL from wap chatting.. IMHO, its a gud way to write things. TIMTOWTWI - there is more than one way to write it! TDH - That Definitely Helped! Thanks all.. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

AFAIK

2007-09-24 Thread Somu
What does it mean? AFAIK? I have seeing it a lot.. Earlier i've been seeing the HTH, and a guess gave the answer.. But this one, AFAIK... Are there any more such short forms? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Process ID

2007-09-24 Thread Somu
Great! Thanks.. How about using untie instead of close? Can i know , phat is the difference between the two? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Process ID

2007-09-23 Thread Somu
Thanks for the help. I did it using system "tasklist >> temp"; open FH , "temp" ; statements.. unlink ("temp"); #EOF -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

System

2007-09-21 Thread Somu
About that PID problem, i found a program in Windows named tasklist, it prints all the processes running on the system with its id. I used the system command to execute the tasklist, like as my $data = system "tasklist" ; but i got nothing in $data. How can i get the data from the system command?

Process ID

2007-09-18 Thread Somu
How do i find out the process id of any process. When we see the task manager in Windows, we can see the programs running in the PC. Is there any way to know the same with perl? Does process id of a program change each time the program is run? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: Linked lists

2007-09-15 Thread Somu
Oh..thanks everyone. Now i understand the difference between references and pointers. Then, i got to know something of C link list from a perl list.. Hahaha. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: HTTP Filtering and Threads...

2007-09-14 Thread Somu
you can store all the data in an array first and then apply regex on all lines, if the response come in lines. Else, get all the data in a scalar and apply the regex. I think this may get you the silva my ($name,$type,$mname) =~ /name=(.*) type=(.*) value=(.*)/i; i'm not sure though how we may ca

Re: Linked lists

2007-09-14 Thread Somu
Well, now i know something more. Can't we treat references as pointers? We use link list in C for the reason that an array needs continuous memory locations like 1 2 3 4 5 6 .. And when the size is big, it may fail. So, we use link list. And pushing things into a C array is not allowed. So we do th

Linked lists

2007-09-13 Thread Somu
Hi list, Recently i've been learning a bit of C programming. I used data structures and then linked lists .. Does perl have this concept? Linked list helps in good memory management. Does perl automates memory management for us? Also, all the C variables are bound to be declared at the top, so that

Use tk

2007-09-03 Thread Somu
When we use tk, there is always the black DOS window. How can we make it disappear? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: File::Find

2007-09-01 Thread Somu
Oh, i am very sorry for my mistakes. Actually i write email from my mobile, and somehow that backslash vanished. I just checked now from a PC and its working now. Thanks. And i also commented that line sub rm(); thanks everybody! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: File::Find

2007-08-31 Thread Somu
Those double dollar signs are formatting errors of my mail server. And with the code i posted, the error has to be at the if statement in the rm definition -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: File::Find

2007-08-31 Thread Somu
use strict; use warnings; use File::Find; sub rm(); my $count=0; my @dir = ("F://Hindi/RHTDM"); find(&rm,@dir); sub rm(){$count++ my ($fname)= $_; if($fname=~ /mp3/){print "$count $fname"} } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://le

Re: File::Find

2007-08-31 Thread Somu
/28/07, Randal L. Schwartz <[EMAIL PROTECTED]> wrote: > > >>>>> "Somu" == Somu <[EMAIL PROTECTED]> writes: > > > > Somu> Good sense of humour! Actually i wanted to search for F:/Hindi/RHTDM > > Somu> and i entered only /Hindi/RHTDM

Re: File::Find

2007-08-28 Thread Somu
I write all my programs for my personal use in my PC only, just to learn perl. I will use the code again and tell you, Mr.Randal. Thanks anyway. Actually, i have written something which will get all file and folder names in a given folder matching a regex, but then i want the same subroutine to run

Re: File::Find

2007-08-27 Thread Somu
::Find On 8/27/07, Randal L. Schwartz <[EMAIL PROTECTED]> wrote: > >>>>> "Somu" == Somu <[EMAIL PROTECTED]> writes: > > Somu> The code didnt work. Error: > Somu> Can't stat /my/dir: No such file or directory > Somu> at test.pl

Re: File::Find

2007-08-26 Thread Somu
The code didnt work. Error: Can't stat /my/dir: No such file or directory at test.pl line 12 On 8/20/07, Martin Barth <[EMAIL PROTECTED]> wrote: > On Fri, 17 Aug 2007 07:48:33 -0700 > [EMAIL PROTECTED] (Randal L. Schwartz) wrote: > > > Why not just: > > > > my @list; > > find sub { push @list, $$

File::Find

2007-08-20 Thread Somu
How do i use it? Can it replace the search program in MS XP.. Can i get an example of an element in the @directories -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

dbmopen

2007-08-01 Thread Somu
Cant we use this to store arrays? Example: [EMAIL PROTECTED]; i'm getting errors.. Which will be a good alternate? Joining the array elements and saving as a string to be parsed later or saving a ref to the array? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: Inserting Image in a Button or label.

2007-05-08 Thread Somu
Thank you so much.. I was doing $pic=$mw->Photo(args...)->pack; by the way, how do i get the data for any picture as Zentara did? And, please Mr. Chas, can u explain me your example in the other string? I dont know what XPM is and i couldn't follow your code from static char ... -- To unsubscribe

Creating 100 buttons!

2007-05-06 Thread Somu
Ok.. To create just one button we write: use Tk; use strict; my $mw = MainWindow->new; my $b1 = $mw->Button->pack; MainLoop; but to create a hundred buttons, we cant keep writing... So, i used the following: for(my $i=1;$i<=100;$i++){ my $bt='b'.$i; $$bt=$mw->Button->pack; } but the above gives

Inserting Image in a Button or label.

2007-05-06 Thread Somu
All i want to know that i have a file c:/downloads/pics/swati.jpeg and i have my script at d:/scripts i want to embed the picture in the Tk button or label.. I am unable to understand the correct syntax from previous answers.. Please help.. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Inserting Image in a button

2007-05-02 Thread Somu
Lets say, i have an image at E:/icons/ttt so, how do i show it on a button created using Tk. I tried to learn from the widget application, but they have some specific folder, INC or something.. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://

Re: Regexp problem

2007-05-02 Thread Somu
I got the answer and its working fine.. Actually i made a TicTacToe game using Tk. The buttons have are like as below: l o r m p s n q t and i keep adding the character alternatingly to 2 strings.. When any of the strings reaches length >= 3 then i start checking for any pattern out of the eight..

Re: Open() and glob EXPR

2007-05-02 Thread Somu
Ok i got that.. I also checked the perldoc -f q -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Regexp problem

2007-05-02 Thread Somu
Actually thats what i was looking for: l.*o.*r So, if the user entered string is to be matched for 'lpt', then i'll use l.*p.*t ? And to match 'npr' i use .*n.*p.*r ? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Regexp problem

2007-05-01 Thread Somu
Thats where the problem arises my $input = 'loqr'; if ( $input =~ m!lor!i ) {print 'match'} how will that match? i want them to match. Thats what i want to do. by the way, can i get some url where i can get lots of problems and solutions on regexp. I'm very weak in it.. -- To unsubscribe, e-ma

Re: Illegal use of undefined subroutine..

2007-05-01 Thread Somu
Because if define it, it says 'Global variable "$l" needs...' what do i do? Actually, i am not happy nor sad that the subroutine needed a declaration before use.. I'm using ActivePerl 5.8.8 on Windows XP -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: Illegal use of undefined subroutine..

2007-05-01 Thread Somu
Actually, that was just an example to explain my problem. I am facing this problem when i use Tk. Any subroutine associated with the -command option of a button widget. use Tk; my $mw = MainWindow->new; my $b = $mw->Button(-text=>'hello',-command=>sub { &welcome })->pack; my $l = $mw->Label(-text

Illegal use of undefined subroutine..

2007-05-01 Thread Somu
my $s = <>; my $t = <>; conc ( $s , $t ); sub conc { my $str = $_[0].$_[1]; print $str; } Why? It works allright only after add an extra line at the top, that is sub conc; its become just like C -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] htt

Regexp problem

2007-05-01 Thread Somu
Hi, i have a matching problem. I get input from the user as a 3-5 character long string consisting of characters from 'l' to 't', and the chars are always sorted for example, the user enters: 'lrqo'. It becomes: 'loqr'. But i have to match the modified string to any of the following: lmn, lpt, lo

Re: Open() and glob EXPR

2007-04-28 Thread Somu
Thank you all.. Now i'm able to open files from other drives and directories.. The EXPR in glob EXPR is actually a kind of regexp then? What is this new q{} operator? I am sorry for the previous dubious emails, they actually were errors made by the mail sender. -- To unsubscribe, e-mail: [EMAIL

Re: Open() and glob EXPR

2007-04-27 Thread Somu
another file E:/Games/readme.txt how do i do it? On 4/27/07, John W. Krahn <[EMAIL PROTECTED]> wrote: Somu wrote: > I'm not certain about what EXPR is.. EXPR is any valid Perl expression. How do i use glob? perldoc -f glob perldoc File::Glob My next question is regarding opening

Open() and glob EXPR

2007-04-26 Thread Somu
I'm not certain about what EXPR is.. How do i use glob? My next question is regarding opening pipes. I tried the following: open ( FH , " notepad " ); print FH 'hello' ; But its only opening the notepad application, and nothing shows up on the notepad.. -- To unsubscribe, e-mail: [EMAIL PROTECT

Re: Math::BigFloat

2007-04-26 Thread Somu
Thanks. I got that corrected. Actually, in my code, $n wasnt a Math::BigFloat OBJECT. On 4/25/07, Rob Dixon <[EMAIL PROTECTED]> wrote: Somu wrote: > On 4/25/07, Tom Phoenix <[EMAIL PROTECTED]> wrote: >> >> On 4/24/07, Somu <[EMAIL PROTECTED]> wrote: >>&g

Re: Regexp

2007-04-26 Thread Somu
$q contains decoded msgs using MIME::Base64, and is any random word from a dictionary of 45000 words. On 4/26/07, Dr.Ruud <[EMAIL PROTECTED]> wrote: Somu schreef: > why wont the following work? > > $$q = shift; print length($$q), " "; $$p = "pass"; >

Regexp

2007-04-25 Thread Somu
why wont the following work? $q = shift; $p = "pass"; if ( $q =~ m/$p/i ) { print 'match' } But it works on changing the $q and $p places.. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Math::BigFloat

2007-04-25 Thread Somu
Actually the following isnt working: use Math::BigFloat; $n = 0; if ($n->is_zero()) {print 'you entered zero'} On 4/25/07, Tom Phoenix <[EMAIL PROTECTED]> wrote: On 4/24/07, Somu <[EMAIL PROTECTED]> wrote: > I'm unable to compare numbers using the module

Math::BigFloat

2007-04-24 Thread Somu
I'm unable to compare numbers using the module. Actually i can only use it to create numbers like 0 or inf or 1 or their negatives. But i dont know how to use their methods. Bcoz the examples in the doc aren't working. Can i get some simple examples? -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: Ascending numbers

2007-03-04 Thread Somu
Hi Jeff Ji, your program worked. But i couldn't understand the second line.. That long print statement. What happened there? My 'simple' sort arranged numbers in dictionary style.. Like 0 then 1 then 17 then 2 and then 29.. And how come in using strict module, that $a and $b didnt make any noise?

Ascending numbers

2007-03-04 Thread Somu
I'm unable to arrange the numbers in an array in ascending order.. I tried the following @asc = sort{$a<=>$b} @list; but it didnt work. I did a subroutine sub con{ my ($a,$b); $a<=>$b;} Then i tried @asc = sort con @list; #didnt work Can anyone please help? --