Fwd: how to skip new line character

2004-09-08 Thread David le Blanc
-- Forwarded message -- From: David le Blanc <[EMAIL PROTECTED]> Date: Thu, 9 Sep 2004 16:54:56 +1000 Subject: Re: how to skip new line character To: "Anish Kumar K." <[EMAIL PROTECTED]> Is the problem either 1) Remove the end of line character from all lines 2) Remove the end of

how to skip new line character

2004-09-08 Thread Anish Kumar K.
Hi All As a beginner in PERL, I wrote a small program which reads data from the file and stores in an array. In that process i wanted to skip the new line character... for ex: In my program say "a.txt" contains man pan tan In the program open INPUT,"a.txt" or die $!; my @file = ; when I pri

Re: Foo (Bar)---I now see the light! (Or that which is made light of)

2004-09-08 Thread Chris Devers
On Wed, 8 Sep 2004, Jose Alves de Castro wrote: From dictionary.com : Another common metasyntactic variable; see foo. Hackers do *not* generally use this to mean FUBAR in either the slang or jargon sense. According to a german correspondent, the term was coined during WW2 by allied troops who coul

Re: general question about variable and array

2004-09-08 Thread Bob Showalter
xaver biton wrote: > Hi, > > how do I insert the values of variables of a function in a array which > ist out of the scope of the function, e.g > > I've a find function and I want insert the values results of the find > function in an array: > > > my @array;

Re: general question about variable and array

2004-09-08 Thread xaver biton
Xaver Biton wrote: Hi, what's wrong with my question? an answer of any kind would be nice. thks. Xaver Biton -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: HINT: regex coach

2004-09-08 Thread Jose Alves de Castro
On Wed, 2004-09-08 at 10:17, Ing. Branislav Gerzo wrote: > Hi, > > many of us need sometime fast help with regex. I recently found on the > web really nice and easy program. Maybe someone of you already know > it, for those, who don't it is REGEX COACH, download it from: > > http://www.weitz.de/r

Re: Foo (Bar)---I now see the light! (Or that which is made light of)

2004-09-08 Thread Jose Alves de Castro
From dictionary.com : Another common metasyntactic variable; see foo. Hackers do *not* generally use this to mean FUBAR in either the slang or jargon sense. According to a german correspondent, the term was coined during WW2 by allied troops who could not pronounce the german word "furchtbar" (

Re: Foo (Bar)

2004-09-08 Thread Randal L. Schwartz
> "Wiggins" == Wiggins d Anconia <[EMAIL PROTECTED]> writes: Wiggins> Not just Perl programmers: Wiggins> http://jargon.watson-net.com/jargon.asp?w=metasyntactic%20variable Wiggins> http://jargon.watson-net.com/jargon.asp?w=foo It's because of the overuse of Foo and Bar that I chose Fred and

RE: Foo (Bar)

2004-09-08 Thread Weaver, Walt
> -Original Message- > From: M Senthil Kumar [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 9:53 AM > To: jason corbett > Cc: perl beginners > Subject: Re: Foo (Bar) > > > > Hi, > > On Wed, 8 Sep 2004, jason corbett wrote: > > As a newbie, I have seen the statement "

Re: Need help with a "Binding Variable" excercise

2004-09-08 Thread jason corbett
Ooops!! Thanks!! Jenda Krynicky <[EMAIL PROTECTED]> wrote:From: jason corbett > I am trying to learn about binding variables. i am writing a simple > script that with select a row of records and print them to screen. I > am getting the error Can't call method "bind_param" on an undefined > value

Re: Need help with a "Binding Variable" excercise

2004-09-08 Thread Jenda Krynicky
From: jason corbett <[EMAIL PROTECTED]> > I am trying to learn about binding variables. i am writing a simple > script that with select a row of records and print them to screen. I > am getting the error Can't call method "bind_param" on an undefined > value at porqout.pl line 29. > > Here is the

Need help with a "Binding Variable" excercise

2004-09-08 Thread jason corbett
I am trying to learn about binding variables. i am writing a simple script that with select a row of records and print them to screen. I am getting the error Can't call method "bind_param" on an undefined value at porqout.pl line 29. Here is the code below. #!/usr/bin/perl -w use strict; use

RE: Foo (Bar)

2004-09-08 Thread Bob Showalter
Bob Showalter wrote: > http://www.catb.org/~esr/jargon/html/M/metasyntactic-variable.html Oops, sorry. Didn't realize someone already posted that link. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Foo (Bar)

2004-09-08 Thread Chris Devers
On Wed, 8 Sep 2004, Wiggins d Anconia wrote: On Wed, 8 Sep 2004, jason corbett wrote: Just as algebra problems often use "x" and "n" for arbitrary variables, many Perl programmers use "foo" and "bar" for arbitrary variables. Not just Perl programmers: http://jargon.watson-net.com/jargon.asp?w=meta

RE: Foo (Bar)

2004-09-08 Thread Bob Showalter
jason corbett wrote: > As a newbie, I have seen the statement "foo (bar)" mentioned in books > and and even on this site. I haven't yet seen what this actually mean > as I can assume that its just for examples. If I am wrong please > explain in detail what this is about. http://www.catb.org/~es

Re: Reading Multiple Lines

2004-09-08 Thread John W. Krahn
Eduardo Vázquez Rodríguez wrote: Hello Hello, I am writing scripts that process big files which contains too many lines (aproximately 700 000 lines per file). My strategy until now to solve this problem is reading line per line, something like this while () { dosomethingwith($_); } Is there

Re: Reading Multiple Lines

2004-09-08 Thread Jose Alves de Castro
On Wed, 2004-09-08 at 18:01, Eduardo Vázquez Rodríguez wrote: > Hello > > I am writing scripts that process big files which contains too many > lines (aproximately 700 000 lines per file). My strategy until now to > solve this problem is reading line per line, something like this > > while ()

Re: Foo (Bar)

2004-09-08 Thread M Senthil Kumar
Hi, On Wed, 8 Sep 2004, jason corbett wrote: > As a newbie, I have seen the statement "foo (bar)" mentioned in books > and and even on this site. I haven't yet seen what this actually mean as > I can assume that its justfor examples. If I am wrong please explain in > detail what this is about. I

Foo (Bar)---I now see the light! (Or that which is made light of)

2004-09-08 Thread jason corbett
jason corbett <[EMAIL PROTECTED]> wrote: As a newbie, I have seen the statement "foo (bar)" mentioned in books and and even on this site. I haven't yet seen what this actually mean as I can assume that its just for examples. If I am wrong please explain in detail what this is about. Than

RE: Reading Multiple Lines

2004-09-08 Thread Shaw, Matthew
Eduardo: Depending on how many lines you need to work with at once and how disparate they are, you could create a buffer of the last N lines to work on, such as: while ( ) { push @buffer, $_; shift @buffer if @buffer > 10; # @buffer will now have the current

Re: Foo (Bar)

2004-09-08 Thread Wiggins d Anconia
> On Wed, 8 Sep 2004, jason corbett wrote: > > > As a newbie, I have seen the statement "foo(bar)" mentioned in books > > and and even on this site. I haven't yet seen what this actually mean > > as I can assume that its just for examples. If I am wrong please > > explain in detail what this is

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: Foo (Bar)

2004-09-08 Thread Shaw, Matthew
Jason: Foo & bar (or just foobar) are terms of varied origins simply meant to express 'this thing' as in 'in function foo what will the output be given argument bar'. (Compare also to: x (y)) There are many explanations for the origin of the term, and most are captured at one of the two following

Reading Multiple Lines

2004-09-08 Thread Eduardo Vázquez Rodríguez
Hello I am writing scripts that process big files which contains too many lines (aproximately 700 000 lines per file). My strategy until now to solve this problem is reading line per line, something like this while () { dosomethingwith($_); } Is there any way of working with multiple lines a

Re: Foo (Bar)

2004-09-08 Thread Chris Devers
On Wed, 8 Sep 2004, jason corbett wrote: As a newbie, I have seen the statement "foo(bar)" mentioned in books and and even on this site. I haven't yet seen what this actually mean as I can assume that its just for examples. If I am wrong please explain in detail what this is about. Is your quest

Foo (Bar)

2004-09-08 Thread jason corbett
As a newbie, I have seen the statement "foo (bar)" mentioned in books and and even on this site. I haven't yet seen what this actually mean as I can assume that its just for examples. If I am wrong please explain in detail what this is about. Thanks, JC

Re: Net::SNMP session creating problem : develop this as a pakage file

2004-09-08 Thread Chris Devers
On Wed, 8 Sep 2004, Geetha B wrote: But I want to write this as a package/interface file . Please could you guide/direct me to writing a simple/sample perl package (sample.pm) & then testing it. Sorry, I'm afraid I can't do that. This list exists to help people get past the obstacles of learning

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 ? > From: "Bee" <[EMAIL PROTECTED

RE: create connection from html form into insert MySQL data script

2004-09-08 Thread Charles K. Clarkson
Maxipoint Rep Office <[EMAIL PROTECTED]> wrote: : : Charles [mailto:[EMAIL PROTECTED] wrote: : : : : Maxipoint Rep Office <[EMAIL PROTECTED]> wrote: : : : : : : : my $turistobjekt = "dadas"; : : : my $adresa = "sdasdasdfADRESA"; : : : my $brojgrada = "1"; : : : my $grad = "1"; : : : my $manjemje

Re: Net::SNMP session creating problem : develop this as a pakage file

2004-09-08 Thread Geetha B
Hi Chris, Thanks for guiding about the right style of perl coding & also for resolving snmp session problem. My system's snmpd was not enabled & SNMP5.0 was installed which was giving the error as "Unknown Error Creating session" I installed SNMP3.6 , started snmpd, httpd in my Linux system & now

RE: Using reference or throw valuables to sub ?

2004-09-08 Thread Thomas Bätzler
Bee <[EMAIL PROTECTED]> asked: > Is that if I throw the array to another sub also means the > array would be copied and then pass to the target sub ? > while reference is using the same data in system memory? Yes. Use references, unless you need to munge the array in the sub you're calling. HTH

RE: regex on the command line

2004-09-08 Thread Bob Showalter
Errin Larsen wrote: > Hi Perl-Buddies, > > I'm wondering how to get a regex into my code at run-time. I mean in > a command line like this: > > # my_perl_program "foo(\w|and|or)+bar" foobar.txt > > and in my code I want to be able to search the foobar.txt file with > the regex found in the quot

regex on the command line

2004-09-08 Thread Errin Larsen
Hi Perl-Buddies, I'm wondering how to get a regex into my code at run-time. I mean in a command line like this: # my_perl_program "foo(\w|and|or)+bar" foobar.txt and in my code I want to be able to search the foobar.txt file with the regex found in the quotes. So if I assign the above to a var

Re: Using reference or throw valuables to sub ?

2004-09-08 Thread Jenda Krynicky
From: "Bee" <[EMAIL PROTECTED]> > 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 PROTEC

Re: Using reference or throw valuables to sub ?

2004-09-08 Thread Flemming Greve Skovengaard
Bee wrote: 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

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: create connection from html form into insert MySQL data script

2004-09-08 Thread Maxipoint Rep Office
-Original Message- From: Eduardo Vázquez Rodríguez [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 2:02 AM To: Maxipoint Rep Office Cc: Charles K. Clarkson; [EMAIL PROTECTED] Subject: Re: create connection from html form into insert MySQL data script I think he is from Cro

HINT: regex coach

2004-09-08 Thread Ing. Branislav Gerzo
Hi, many of us need sometime fast help with regex. I recently found on the web really nice and easy program. Maybe someone of you already know it, for those, who don't it is REGEX COACH, download it from: http://www.weitz.de/regex-coach/ Notes: The Regex Coach is a graphical application for Linu