Re: How to match multiple lines in a txt file?

2006-08-07 Thread Guo Remy
many thanks~~ it's quite clear in the perldoc and the problem is solved. :) 2006/8/7, John W. Krahn <[EMAIL PROTECTED]>: Guo Remy wrote: > hi all, Hello, > i'm now trying to match a number of lines in a txt file...for example, my > txt file is: > > abc > xyz > fred > wilma > barney > anythi

string to perl

2006-08-07 Thread Ryan Perry
I have a string I want to pass to another function and I want that function to evaluate it as perl code: my $str='window.location=" $tableURL ? "$tableURL" : $r->uri . '?' . ($tableKey || $columnsList[0]->{dbName}) . '="+a_marked' sub dothis { my $tableURL='something'; my $

Suppress Exiting warning

2006-08-07 Thread Beginner
Hi, Error message: "Exiting subroutine via next at mk-thumbs.pl line 188" I have a script that uses File::Find. ...snip use strict; use warnings; use File::Basename; use File::Find; ...snip find(\&wanted, @dirs_to_search); In the callback for find I have this: sub wanted { if ($_ !~ /html

Re: Suppress Exiting warning

2006-08-07 Thread Ashish Srivastava
I think there is no need to use 'next' in wanted subroutine. Can you try this: sub wanted { # if ($_ !~ /txt/) { #next; # } # next unless ($_ =~ /html/); # Original line. if (/html/ && -f $File::Find::name) { push(@dirs_to_delete,$File::Find::name); } } # End of wa

Re: Suppress Exiting warning

2006-08-07 Thread John W. Krahn
Beginner wrote: > Hi, Hello, > Error message: > "Exiting subroutine via next at mk-thumbs.pl line 188" > > > I have a script that uses File::Find. > > ...snip > use strict; > use warnings; > use File::Basename; > use File::Find; > ...snip > > find(\&wanted, @dirs_to_search); > > In the call

Header ("Location")

2006-08-07 Thread Umar Draz
Hi Dear Members! In PHP i can use header ("Location: this.php?error=this_error"); Please help me how i can use in Perl? Regards, Umar Draz - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or le

Re: doubt in quote-like operators

2006-08-07 Thread anand kumar
Hi, Thanks alot for the detailed explanation. Regards Anand Kumar Prabu <[EMAIL PROTECTED]> wrote: anand kumar wrote: > hi all, > > I could not understand clearly the functions > qw(),qq(),qr(),qx(),q(),quotemeta(). I > have read the explanation for these functions in the perl d

pack function

2006-08-07 Thread john wright
Hi, Can anyone explain me about below line of code,what will be the output,when i am running this code,i am not getting any output. $val=0x2964; pack ("n", $val); Thanks.. - Yahoo! Music Unlimited - Access over 1 million songs.Try i

Re: POD: force line break?

2006-08-07 Thread Ken Foskey
On Sun, 2006-08-06 at 17:40 +0200, Peter Daum wrote: > Hi, > > Is there any way, to force a line break in POD, > without starting a new paragraph? easy way is to indent 1 space then it does not get formatted. Kind of link tag in html. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: pack function

2006-08-07 Thread Jay Savage
On 8/7/06, john wright <[EMAIL PROTECTED]> wrote: Hi, Can anyone explain me about below line of code,what will be the output,when i am running this code,i am not getting any output. $val=0x2964; pack ("n", $val); What output are you expecting? pack doesn't produce output on it's own. I

Re: Header ("Location")

2006-08-07 Thread WCJ d/b/a http://ccsh.us/
On 8/7/06, Umar Draz <[EMAIL PROTECTED]> wrote: In PHP i can use header ("Location: this.php?error=this_error"); Location: is standard HTTP. The trick is too make sure your application is truly talking HTTP. Please help me how i can use in Perl? In Perl, as a 'HereDoc' syntax - print<<_

RE: string to perl

2006-08-07 Thread Timothy Johnson
Check out the documentation on the eval function perldoc -f eval -Original Message- From: Ryan Perry [mailto:[EMAIL PROTECTED] Sent: Monday, August 07, 2006 1:12 AM To: Perl Beginners Subject: string to perl I have a string I want to pass to another function and I want that function

Re: install DBD::mysql, can't execute mysql_config

2006-08-07 Thread WCJ d/b/a http://ccsh.us/
On 8/3/06, zhihua li <[EMAIL PROTECTED]> wrote: but anyway, the make file of DBD::mysql couldn't execute the mysql_config. does anyone have a clue about this? For some solutions to try see: http://lists.mysql.com/perl/3927 -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/

RE: string to perl

2006-08-07 Thread Smith, Derek
-Original Message- From: Timothy Johnson [mailto:[EMAIL PROTECTED] Sent: Monday, August 07, 2006 9:58 AM To: Ryan Perry; Perl Beginners Subject: RE: string to perl Check out the documentation on the eval function perldoc -f eval -Original Message- From: Ryan Perry [mailto:[E

Re: string to perl

2006-08-07 Thread Mumia W.
On 08/07/2006 03:12 AM, Ryan Perry wrote: I have a string I want to pass to another function and I want that function to evaluate it as perl code: [...] perldoc -f eval -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Help with probably dumb question

2006-08-07 Thread Jay Savage
On 8/6/06, Ralph H. Stoos Jr. <[EMAIL PROTECTED]> wrote: All, I am a major newbie (and 53 years old to boot), but I was able to piece together a workable script that processes a CSV file. I get a CSV file once a week that has data which needs to be sorted. For the first pass, I have the script

Re: string to perl

2006-08-07 Thread Dr.Ruud
Ryan Perry schreef: > I have a string I want to pass to another function and I want that > function to evaluate it as perl code: Have you looked into other ways to achive the same result? -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Linux

2006-08-07 Thread Ryan Dillinger
Hello All, I just recently loaded linux onto my laptop. I hope this was not a bad move. But I cannot find the Activstate Perl I downloaded.I am using openSUSE Linux. I also am having trouble deciding which is the command line to open my scripts. There is the : Gnome Terminal, the Konsole, the x

Re: Linux

2006-08-07 Thread John W. Krahn
Ryan Dillinger wrote: > Hello All, Hello, > I just recently loaded linux onto my laptop. Congratulations. > I hope this was not a bad move. Depends on your definition of "bad". > But I cannot find the Activstate Perl I downloaded. Every version of Linux that I have used already had Perl inst