REG: How to add perl repository in PPM

2013-06-26 Thread Anitha Sreejith Victor
Hi All, Please suggest with the steps to add number of available perl repositories in PPM-edit-preferences-repository. I also tried to add the same , but ended up with 401 Authorization required. Thanks.

Test Mail

2012-08-03 Thread Anitha Sreejith Victor
I want to subscribe to this perl forum thanks, Anitha

Re: My confusion about if ( /grep $desc/ )

2009-03-11 Thread Victor Tsang
kevin, To answer your question, the 'greb' in your code is just part of a string, it won't produce any effect. and if what you wish is to remove your own grep process, this command might do the trick. ps -ef | grep hald-runner | grep -v grep Tor. kevin liu wrote: Hello everyone:

Doubt in Spreadsheet::ParseExcel

2008-10-29 Thread anitha victor
Hi Team, I want a code snippet for retrieving the content in xcel sheet in a variable. Thanks in advance[?] --- Anitha victor 328.png

Re: can i change file content without using a temp file

2007-07-23 Thread Victor Tsang
if you want to apply this regex to a single file, using the -i option (in place editing) might be the quickest way for you. ie. perl -pe tr/[a-e]/[1-5]/g -i filename Tor. cute wrote: Now i create a temp file to store changed content. is there a simple way to change file content without

Re: about serialization

2006-11-07 Thread victor tsang
http://en.wikipedia.org/wiki/Serialization Serialization here refer to the action of translating a complex data object into a simpler format. For example, translating an array [1,2,3] into a text string 1,2,3. Tor. Practical Perl wrote: I saw a paper about DB_File, Three

setting a user passwd

2005-07-21 Thread Victor Pezo
Hi, I am developing a program that sets passwd for any user but i dont want the operator sets the passwd. I want to give it as a result of a function [EMAIL PROTECTED] victor]$ perl passwd.pl victor1 #!/usr/bin/perl $usuario=$ARGV[0]; $passwd=PASSWDGENERATEBYOTHERFUNCTION `sudo /usr/sbin

Need a perl module

2005-06-07 Thread Victor
I need a perl module that can help me get a attachement from a massage, from a mailbox. Can you recomend me one? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

perl-CGI module - post method

2005-02-09 Thread Victor
I wrote tne initial question about the perl-CGI module and post method. Thank you for your answers. The problem is a little more comlicated, but I found a solution. I belive it is a problem o incompatibility betwen perl-CGI and something else on my system - possible Apache ASP(I can't say

perl-CGI module - post method

2005-02-08 Thread Victor
I use the last version of perl-CGI. When I transmit the variables using the get method it works($cgi-param(variable) returns the correct value). When I transmit the variables using the post method it I receive a empty string(($cgi-param(variable) is empty). If I try to receive the variables

using CGI module

2004-11-16 Thread victor
I need to access a variable like this: $cgi-param($variable); This doesn't work. But this works: $cgi-param('name'); The first try ($cgi-param($variable)) ends with a Internal server error. Thank you. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

printing 2 Cache-Control header using CGI.pm

2004-11-10 Thread victor
the first header. I am wondering, beside printing the header myself without using CGI.pm, is there any way I can work around this? Many thanks. Tor. -- !- Victor Development Engineer

Printing html document

2004-09-24 Thread victor
I need to print a html page using a button(but not the mozilla or explorer button). So I need I button in a web page that will print that page to a printer that is not attached to the local computer, but to the web server where the page is hosted. The problem is that when I send a

Re: Getting the most recent file

2003-12-15 Thread victor
you could just write @files = sort { -M $a = -M $b } @files; print $files[-1], \n; Or do you need anything more? HTH, Rob -- !- Victor Development Engineer Outblaze

RE: Visual Perl

2003-10-24 Thread Victor Medrano
I'm Really interesting in this software , let me know if you find A visual perl . Regards -Original Message- From: Ned Cunningham [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 12:00 PM To: [EMAIL PROTECTED] Subject: Visual Perl Hi Gurus, I just finished up with a Perl

What is faster?

2003-07-14 Thread Victor Peinado
Hi list, I have a bilingual dictionary in a file with the following format: word1:sense1 sense2 ... senseN word2:sense1 sense2 ... senseN ... I'm doing a simple script which looks for a word and returns all the possible translations. What's the faster (or the more efficient) way to do that when

Re: String removal

2003-03-27 Thread Victor Tsang
$TheOriginalString =~ s/$StringOrCharToRemove//g; Tor. Christian Calónico wrote: Hello. I need to know how to remove a substring from a string and a how to remove a simple character occurrence from a string. Thanks in advance! Christian.

Re: arrays and subroutines

2003-03-16 Thread Victor Tsang
You need to pass the array to the function by reference, here's the fix. spin([EMAIL PROTECTED]); sub spin { $arr = shift; for (; $count 0; $count--) { push(@$arr, $start++); } } but if all you want to do is to populate your array with value between 1025 to 1035, here's a

Re: Copying directory structure and its content.

2003-02-19 Thread Victor Tsang
In shell, you can use cp -r or rsync I have never done such thing in perl, but this library might be what you need. http://theoryx5.uwinnipeg.ca/CPAN/data/File-DirSync/README.html Tor. Pankaj Kapare wrote: Hi, I want to copy whole directory structure and its containts(may be file and

Re: Sharing variables

2003-02-10 Thread Victor Tsang
This is what you need http://theoryx5.uwinnipeg.ca/CPAN/data/IPC-Shareable/IPC/Shareable.html Tor. dan wrote: Hi Is it possible to share variables between 2 perl scripts running as 2 separate processes? I've looked on CPAN but can't see any names that are obvious they do that kind of

Re: Replacing a string in a bunch of files

2003-02-03 Thread Victor Tsang
Mu... I have a quicker way, try this. cat FileContainFileNames | xargs -n1 perl -pe s/oldstring/newstring/g -i Tor. Richard Fernandez wrote: I just had a situation where I needed to replace one string with another string in 200 files. This is what I came up with, but I know there has to

trapping errors in use

2003-01-20 Thread Victor Tsang
#!/usr/bin/perl BEGIN { $mod = CGI; unless (eval use $mod) { warn unable to install $mod $@\n; } } I expected this to work ok, but to my surprise, when I execute it, I get this : [htsang@victor htsang]$ ./test.perl unable to install CGI To verify CGI.pm is there, I

Re: Finding IP address connected to your http server.

2003-01-17 Thread Victor Tsang
Maybe we should bring this discussion out to a more appropiate list, but anyways, have a look into this doc. http://dev.zope.org/Wikis/DevSite/Proposals/RemoteAddrAndAccelerators This is not perfertly reliable, but you might want to consider it. Tor. Please bear in mind that this IP

Re: The number of elements in an array

2003-01-16 Thread Victor Tsang
for ($x=0; $x scalar(@amen); $x++) Tor. Robert Monical wrote: Hello, I'm away from my Perl book and hope one of you will help me. Would somebody please remind me how to make this line work for ($x=0;$x$#{@amen};$x++){ right now, the loop only executes once. TIA

Re: Finding IP address connected to your http server.

2003-01-16 Thread Victor Tsang
how about using mod_status? it shows all the IP connected to the server. Tor. simran wrote: if (you are looking for connections that have come in over time) then look in the log file else if i you are looking for the ip that is current connecting to the cgi script you can

Re: Check if a hash is empty

2003-01-10 Thread Victor Tsang
if (%hash){ $ do } Tor. NYIMI Jose (BMB) wrote: Hello, If(keys %hash){ #do ... } Could you suggest an other way, please ? Thanks in advance. José. DISCLAIMER This e-mail and any attachment thereto may contain information which is confidential

Re: bandwidth restricting

2003-01-09 Thread Victor Tsang
If you have a linux box, It might be a better idea to employ the traffic shapper that comes with the linux kernel instead. Tor. mod_perl wrote: hi all, In my Lan I have a linux proxy .How can i restrict the bandwidth cosumed by each user using perl .Which module i can use .

Re: hash arrays

2003-01-09 Thread Victor Tsang
you second @EXPORT_OK= statement reset the EXPORT_OK array, I believe the correct syntex should be. our @EXPORT_OK = qw(@T_AREA %T_IDS); Tor. Jerry Preston wrote: Hi!, I do not understand what I am doing wrong. I can pass an hash this way and not an array using the following:

Re: Reading config files

2002-11-01 Thread Victor Tsang
build a pm to store them. Tor. Brian Ling wrote: Hi All I have a main Perl program that needs to read in a config file that just sets some variable values, what is the best way to do this. The config file can be in any format I want such as: #!/usr/bin/perl my $var = 3; my $var1 =

comment on CGI-SpeedyCGI

2002-10-01 Thread Victor Tsang
Just saw this package on the Oct-2 UsePerl newsletter, would anyone who tried this share some comment on it? how is the performance compare to a mod_perl setup? Thanks. Tor. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: sorting hash entries

2002-07-22 Thread victor
the command 'sort' allow you to put in your own routine to do sorting. %usernum = (server.one.com = 15, server.two.com = 5, server.three.com = 14, server.four.com = 9); @arr = sort {$usernum{$a} = $usernum{$b}} (keys %usernum); print join( , @arr); Tor.

libwww-perl and URI modules for 5.005_02

2002-07-10 Thread H. Victor Lim
- but following these links all resulted in HTTP 404 - File not found It seems that upgrading from 5.005_02 to 5.6.1 is inevitable, but this process would require additional time and resources to recertify all of our existing programs on 5.6.1. Thanks, -Victor -- To unsubscribe, e-mail: [EMAIL

Re: Date and Time

2002-07-10 Thread victor
are you trying to get the localtime in readable format? if so try this print scalar(localtime); Tor. [EMAIL PROTECTED] wrote: Hi I'm trying to get my script to recognize the date and time. I thought I had it but I keep getting errors all over. Please take a look and tell me whats

libwww-perl and URI modules for 5.005_02

2002-07-10 Thread H. Victor Lim
- but following these links all resulted in HTTP 404 - File not found It seems that upgrading from 5.005_02 to 5.6.1 is inevitable, but this process would require additional time and resources to recertify all of our existing programs on 5.6.1. Thanks, -Victor -- To unsubscribe, e-mail: [EMAIL

Re: How to make the PC Speaker ring a beep sound?

2002-07-09 Thread victor
print chr(7); Tor. Connie Chan wrote: Hi all, I am trying to write a script for sound alarm function. I've tried use print \a, but that goes too strange... the sound output goes out by my sound card. So would you tell if that's the normal result of print \a ? Actually, I hope the

Re: Script execution via email

2002-05-16 Thread victor
Depending on which mail system you use, I know for qmail, you can setup a .qmail file to instruct qmail to trigger a script when there's any incomming email. Tor. Dan Fish wrote: I've got a perl script that reads a dozen or so various documents and data files and generates a custom report

Re: Passing Arguments into a Program

2002-04-12 Thread victor
@ARGV in your example $ARGV[0] will be abc $ARGV[1] will be def ...etc Tor. Mike wrote: If a program calls a perl script as follows: /tmp/perltest.pl abc def ghi jkl mno Is there a variable which would contain the arguments? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Splitting number into an array

2002-04-09 Thread victor
@array = split(, $card_no); Tor. Daniel Falkenberg wrote: Hey all, $card_no = 1234567901234567 # 16 digit number How would I go about splitting that number into an array? Regards, Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Timeout a system command

2002-04-07 Thread victor
Try the alarm function. Tor. Darren Edgerton wrote: Hi, i want to set a timer around a system command, so that IF the command runs longer than x seconds send email to the sysadmin Note: i *DO NOT* want to kill the process - simply want to send a warning that it is taking longer than

Re: looking for book on object oriented perl

2002-03-18 Thread victor
In my opinion, the balanace between theory and technique in the book is good, you really can't expect a book about object oriented to be without any theory at all right? I was very fresh on OO perl when I first read the book and I did found a lot of good tips and advice from it. If you are

Re: regex question

2002-03-13 Thread victor
Try this regexp. s/###.*?###//g; [EMAIL PROTECTED] wrote: hi i have a long text file. in this text file several strings of the form: ### filename.jpg ### are embedded. how should a regex look that takes following: text before ### filename.jpg ### text after and returns text

Re: Save image to disk

2002-03-13 Thread victor
You probably don't need a perl script for this, there's this command call wget in linux which you can use to mirror a site, and using the -A option you can make it download file with specified extention (gif, jpg..etc). Tor. Gary Hawkins wrote: Would like to save images to disk using their

Re: text editors

2002-03-07 Thread victor
emacs michael wrote: Speaking of text editors, anyone know of a good one that has line #ing for W2K? Free, of course (I am a student). BTW - this is a list that is really worth reading. You guys (and you know who you are) are fantastic. Some of the explanations offered here are so clear

Re: text file database question

2002-02-17 Thread victor
How about Berkely DB? Hughes, Andrew wrote: I have been given the task to create a contest for which appox. 90,000 people might be signing up(collected info: name, company, email, phone, address1, address2). Due to various reasons, I am not able to use a true database like mySQL to store

Re: read source file of .html

2002-01-14 Thread victor
use LWP. it can be as simple as this : use LWP::Simple; print get(http://www.mit.edu;); Tor. yun yun wrote: if I want to read the real html file from web, such as http://www.mit.edu, should I use sock programming? and if then, how could I use,and where can I study this aspect? Thanks!

Re: Compile .cgi programs

2002-01-10 Thread victor
.. this might be what you are looking for. http://www.indigostar.com/perl2exe.htm#download kondreddy Rama koti Reddy wrote: Dear Friends, can u tell me, how can i create an executable file for the .cgi program on linux whihc is having perl and javascript statements. Thanking

Re: Password ---- cgi-perl-html

2002-01-07 Thread victor
actually, most likely you are looking not just password checking but also session management. The easiest way is to take advantage of mod_auth which come with apache by default (consult this part of the apache faq for more detail http://httpd.apache.org/docs/misc/FAQ.html#user-authentication)

help with program

2001-11-21 Thread Victor
) { ...stuff...} but i will like to know more information on the reception of the e-mail, or information of the function that process this process Any assistance would be greatly appreciated. Thanks Victor Pezo

Re: greetings and salutations all

2001-11-13 Thread victor
Check out CGI.pm, and one more thing, make sure your html form has the ENCTYPE set to multipart/form-data. Tor. patrick wrote: hello. i'm a perl beginner. you know that input type=file bit in html ? well i need to make my website upload files and i only have cgi functionallity so i'll

Re: Command line vs. Application

2001-09-04 Thread victor
Have you checked the permission, could it be your Application being run as somebody having no permission to write to the files you are trying to write to. or if you happens to make use of shell command within your script, the PATH variable could be missing from your application. Hope this help

Re: creating a daemon

2001-09-03 Thread victor
There is a big section in the Perl Cookbook( O'Reilly) that show you step by step detail of how to create a daemon. peter grotz wrote: hi all, I need a program to run like a daemon. it should do: look in a directory for some flag-files, if some exist the daemon should start other

Re: file size

2001-06-21 Thread victor
use the stat command. [EMAIL PROTECTED] wrote: Hi, I would like to know if with a perl script you can get the size of a file ? I need to get all the size of 250 files on 250 computers ... thanx

Re: to delete a file

2001-06-21 Thread victor
try the unlink command. Stéphane JEAN BAPTISTE wrote: How can I delete a file ? thanks

Re: PERL DB Question

2001-06-19 Thread victor
1) unless you have previously populated the db file, it will start off as empty. I guess, this is my most basic and pressing question. A file by the name mockalias exists which already has the usernames and e-mail addresses separated by : When I use the tie command, am I

Re: Perl/Linnux/unix question

2001-06-19 Thread victor
put a nohup in front and a at the end. This will make your script immune to handup and run in background. Tor. [EMAIL PROTECTED] wrote: Which linux command i use to run a perl script that will stay running in my server even when i logout via telnet? Thanks

Re: PERL DB Question

2001-06-18 Thread victor
Try this instead tie %ALIAS, DB_File, $filename, O_RDWR|O_CREAT, 0644, $DB_HASH; Prabhu, Vrunda P (UMC-Student) wrote: I have an existing file, called mockalias that contains entries in the following format: username : e-mail address I want to use a hash %ALIAS to read the mockalias file

Re: PERL DB Question

2001-06-18 Thread victor
1) unless you have previously populated the db file, it will start off as empty. 2) $ALIAS is the reference to the hash, maybe you were trying to say print %ALIAS? and may I suggest a little loop like this : foreach (keys %hash) { print $_ :: $hash{$_}\n; } which will print the content

Re: Calling a Perl script with parameters

2001-06-13 Thread victor
The command line parameters are stored in the @ARGV array. Tor. Edd Dawson wrote: Hi, I wish to write a perl script that i can call from the command line and pass parameters to it in the call when running under unix, i.e perl perlscript parameter1 parameter2 I don't seem to be able to

Method interface vs Function Interface

2001-06-09 Thread victor
I have recently came across a mod_perl document that suggested Perl's Method Interface is more 'memory friendly' compare to Perl's Function Interface. I'm not too sure I've got the meaning of this 'Method Interface' and 'Function Interface' correctly, is it referring to the procedural function

Re: IS there a module / method for ?

2001-06-07 Thread victor
you can try rsync Vinay T.S. wrote: I wanted to know if there is any module or method in an existing module for a) transfer a directory tree from one machine to another I could use tar xvf - top_dir_of_source | rsh target_machine cd target_dir ; tar cvf - ) wanted to do this , using