Re: Few simple questions...

2001-11-05 Thread Randal L. Schwartz
>>>>> "Daniel" == Daniel Falkenberg <[EMAIL PROTECTED]> writes: Daniel> Because I am still new to Perl I have a few questions I would Daniel> like to ask. Basically throughout one of my Perl programs I Daniel> set a whole heap of variables to a has

RE: More formatting questions

2002-01-04 Thread Scott Lutz
: More formatting questions First off, thank you to everyone who has helped me dive into perl full force this week. I am glad I am getting to know the language! My question is about formatting. I need to strip a decimal out of a number and dash out of a date. I am importing a file and then

Re: More formatting questions

2002-01-04 Thread Roger C Haslock
Perhaps s/[-|\.]//g; # replace any dash or (escaped) dot with nothing - Original Message - From: "Scott" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 04, 2002 7:48 PM Subject: More formatting questions > First off, thank you to everyone wh

Re: More formatting questions

2002-01-04 Thread Scott
ROTECTED]> > Sent: Friday, January 04, 2002 7:48 PM > Subject: More formatting questions > > > > First off, thank you to everyone who has helped me dive into perl full > > force this week. I am glad I am getting to know the language! > > > > My question is abou

Re: More formatting questions

2002-01-04 Thread boumans
ant is s/[-.]//g; regards, jos Quoting Roger C Haslock <[EMAIL PROTECTED]>: > Perhaps > s/[-|\.]//g; # replace any dash or (escaped) dot with nothing > > - Original Message - > From: "Scott" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>

Re: More formatting questions

2002-01-04 Thread Jeff 'japhy' Pinyan
On Jan 4, [EMAIL PROTECTED] said: >see, [] is already a character CLASS.. which means 'any character >between these braces' - in short, an implied OR. Good. You said it so I don't have to. >what you want is s/[-.]//g; When I see a construct such as that (s/[...]//g), I often suggest using tr/

A couple of questions!

2002-01-05 Thread Marvin Bonilla
Hello I am really new programing perl scripts so, I read this list and I realized that you know a lot about this stuff, well I want to make a report where the final information we want to have depend of the hour it was saved. The log file is lineal and its look like this: Thu Nov 1 00:00:01 200

Re: 2 simple questions...

2002-01-14 Thread Steven Brooks
On Monday 14 January 2002 08:58 pm, Chris Anderson wrote: > I need to be able to do a wget (But not with a system() command if > possible) > I need to get the current directory. In Linux I type pwd and it shows it > to me, or > I can use the $PWD variable. But if I : > print "The current p

RE: 2 simple questions...

2002-01-14 Thread Peter Cornelius
ect: 2 simple questions... I need to be able to do a wget (But not with a system() command if possible) I need to get the current directory. In Linux I type pwd and it shows it to me, or I can use the $PWD variable. But if I : print "The current path is: $PWD"; it is blank. How can

RE: 2 simple questions...

2002-01-15 Thread Bob Showalter
> -Original Message- > From: Chris Anderson [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 14, 2002 10:58 PM > To: [EMAIL PROTECTED] > Subject: 2 simple questions... > > > I need to be able to do a wget (But not with a system() command if > possible) Us

2 simple questions - update:

2002-01-15 Thread Chris
On the path issue: What I need to do is to verify if a specific directory exists in the current directory: if exists($PWD/ThisDir) then print "WH00T" End If Type statement... TIA Chris Anderson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: Form->Click questions

2002-01-22 Thread Briac Pilpré
Guy Davis wrote: > I apologize if this is making no sense. Since I am using someone > else's code I still have a lot of fuzziness about what is actually > happening. A little nudge in the right direction would be helpful and > greatly appreciated. Maybe you would find the webchatpp application

absolute beginner has questions

2002-02-03 Thread Thomas Kienberger
Hallo, first: I´ve never programmed, bevore. Now i want to start programming with perl. I´ve made the download of a standard perl version for windows. And now I have no idea how to start with a first small programm. I have bought a book about perl, but there is no describtion of how to start. Do

RE: Newbe looping questions

2002-02-05 Thread John Edwards
shows how the while loop will halt. $bar = 10; while ($foo <= $bar) { print "$foo\n"; $foo++; } HTH John -Original Message- From: Mark Richmond [mailto:[EMAIL PROTECTED]] Sent: 05 February 2002 03:50 To: [EMAIL PROTECTED] Subject: Newbe looping questions H

Re: Perl statement questions

2008-06-21 Thread Gunnar Hjalmarsson
Jim Nathan wrote: "$| = 1;". Is there any special meaning of the $| (dollar-pipe) variable? Yes. http://perldoc.perl.org/perlvar.html#%24%7c "open(LFD, ">abc.log");". My question here is that I can't find an example of open being used in this syntax Odd. http://perldoc.perl.org/functions/

Re: Perl statement questions

2008-06-22 Thread Rob Dixon
Jim Nathan wrote: > > I'm new to Perl and I just got a position at a company where we use a > couple of Perl scripts to both set or reset passwords and add user > accounts. These come in handy when users request accounts on multiple > servers. A guy who no longer works there wrote at least one of t

Re: Questions on perl?

2008-08-29 Thread Rob Dixon
moijes12 wrote: > Hello friends, > > I have a few questions about perl,whose answers i am finding difficult > to find.They are as below: > > 1)What type of language is perl? >a)Functional Oriented >b)Object Oriented >c)Process Oriented Those are prog

Re: very basic questions

2009-01-28 Thread Owen
> i am completely new to perl, can you explain to me the following line > of > code in red. > > how does this line of code grab a time value and assign it to $ time, > > how does assigment happend in this conditiona statement. > > > > while (<>) > { > chop; > # Grab the time > next unless ($time

Re: very basic questions

2009-01-28 Thread John W. Krahn
b chen wrote: i am completely new to perl, can you explain to me the following line of code in red. There is no red here, there is only black and white. how does this line of code grab a time value and assign it to $ time, how does assigment happend in this conditiona statement. while (<

Re: FW: two questions

2009-08-06 Thread Chas. Owens
On Thu, Aug 6, 2009 at 11:15, Bryan R Harris wrote: > >>> According to the FAQ you want to do it like this: >>> >>> s/^\s+//, s/\s+$// for $var; > > > I can't find documentation of this notation anywhere, i.e. the comma between > statements with a trailing for. > > John, where do you find all this

Re: FW: two questions

2009-08-06 Thread John W. Krahn
Bryan R Harris wrote: According to the FAQ you want to do it like this: s/^\s+//, s/\s+$// for $var; I can't find documentation of this notation anywhere, i.e. the comma between statements with a trailing for. John, where do you find all this cool stuff? This is just something you pick u

Re: Basic Perl Questions

2010-02-03 Thread Jim Gibson
On 2/3/10 Wed Feb 3, 2010 6:44 AM, "PolyPusher" scribbled: > Hi All, > > I have some Perl experience but has been awhile. I mainly write > SKILL lisp programs for Cadence CAD for a layout group(we are a IC > design center). > > I have a CBR(describes circuit) file and want to open it, find

Re: Basic Perl Questions

2010-02-03 Thread John W. Krahn
PolyPusher wrote: Hi All, Hello, I have some Perl experience but has been awhile. I mainly write SKILL lisp programs for Cadence CAD for a layout group(we are a IC design center). I have a CBR(describes circuit) file and want to open it, find the line in file Is it just one line or are t

Re: Basic Perl Questions

2010-02-08 Thread PolyPusher
On Feb 3, 2:26 pm, jwkr...@shaw.ca ("John W. Krahn") wrote: > PolyPusher wrote: > > Hi All, > > Hello, > > > I have some Perl experience but has been awhile.   I mainly write > > SKILL lisp programs for Cadence CAD for a layout group(we are a IC > > design center). > > > I have a CBR(describes circ

Re: More basic questions

2010-02-10 Thread John W. Krahn
PolyPusher wrote: All, Hello, I have a file that defines pins for an IC. The code needs to find ".SUBCKT RE1321_4" and produce a list that complies with SKILL(lisp) context for Cadence tool suite, the output needs to like ("Ant" "DCS_RX".. "last pin ") and outputs to a file... If pin

Re: More basic questions

2010-02-13 Thread PolyPusher
On Feb 10, 9:03 am, jwkr...@shaw.ca ("John W. Krahn") wrote: > PolyPusher wrote: > > All, > > Hello, > > > > > > > I have a file that defines pins for an IC.   The code needs to find > > ".SUBCKT RE1321_4" and produce a list that complies with SKILL(lisp) > > context for Cadence tool suite, the out

Re: Perl general questions

2010-05-12 Thread Uri Guttman
> "APK" == Akhthar Parvez K writes: APK> 1) Since a hash defined in the main part (outside the APK> subroutines) of a program can be accessed from anywhere (from all APK> subroutines), is it fine, in regards to security or even code APK> elegancy, if we define a hash in the main part?

Re: Perl general questions

2010-05-13 Thread Akhthar Parvez K
Hi Uri, Not sure if it was because I've been dealing with mainly web servers for the past few years, but I always read your name as U-R-I instead of Uri. :-) It looks like you've got a name that's relevant to your profession, most of us didn't have that fortune! On Thursday 13 May 2010, Uri Gu

Re: Perl general questions

2010-05-13 Thread Shlomi Fish
On Thursday 13 May 2010 11:59:36 Akhthar Parvez K wrote: > Hi Uri, > > APK> 3) Also, am I correct in guessing that the memory that's used to > > APK> allocate a variable defined with 'my' will be freed up once the > > APK> current lexical scope is exited? > > > > true but with a file lexical

Re: Perl general questions

2010-05-13 Thread Akhthar Parvez K
On Thursday 13 May 2010, Shlomi Fish wrote: > Then it is very likely that the memory allocated to the "mem" pointer will > not > be returned to the kernel due to the nature of malloc() and how it is an > abstraction above sbrk(): > > http://linux.die.net/man/2/sbrk > > perl 5 makes use of sbrk

Re: Perl general questions

2010-05-13 Thread Akhthar Parvez K
On Thursday 13 May 2010, Akhthar Parvez K wrote: > On Thursday 13 May 2010, Shlomi Fish wrote: > > Then it is very likely that the memory allocated to the "mem" pointer will > > not > > be returned to the kernel due to the nature of malloc() and how it is an > > abstraction above sbrk(): > > >

Re: Perl general questions

2010-05-13 Thread Shlomi Fish
On Thursday 13 May 2010 14:56:37 Akhthar Parvez K wrote: > On Thursday 13 May 2010, Akhthar Parvez K wrote: > > On Thursday 13 May 2010, Shlomi Fish wrote: > > > Then it is very likely that the memory allocated to the "mem" pointer > > > will not be returned to the kernel due to the nature of mallo

Re: Perl general questions

2010-05-13 Thread Uri Guttman
> "APK" == Akhthar Parvez K writes: APK> Yes, I think the memory space allocated by a process using APK> malloc() can't be really freed up until the calling process is APK> terminated. And processes that uses mmap() can unmap those chunk APK> size of memory when it's not needed. I gue

Questions about optmodel constraints

2010-11-21 Thread ayaa
I have three questions: 1. If I have a variable that is stored in a data set and I want to formulate only one constraint (under optmodel) that is a function of all the data set's observations of this variable and a decision variable. Suppose the variable is a and x is the decision variabl

Re: perl interview questions

2011-04-20 Thread Doug
2011/4/21 Jyoti : > Hello All, > > Please give me any link or any tutorial which will be helpful for > preparation of PERL interview. > There are lots. But, doesn't google give you any info you want? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: begin

Re: perl interview questions

2011-04-20 Thread Alan Haggai Alavi
Hello Jyoti, Please give me any link or any tutorial which will be helpful for preparation of PERL interview. Please read `perldoc perlfaq` (http://perldoc.perl.org/perlfaq.html). It is a collection of frequently asked questions which will certainly help you at an interview. Regards, Alan

Re: perl interview questions

2011-04-20 Thread Shlomi Fish
Hi Jyoti, On Thursday 21 Apr 2011 07:49:00 Jyoti wrote: > Hello All, > > Please give me any link or any tutorial which will be helpful for > preparation of PERL interview. > First of all, see: * http://perl-begin.org/learn/Perl-perl-but-not-PERL/ (It's either "Perl" or "perl", but never "PERL

Re: perl interview questions

2011-04-21 Thread Luis Roca
sition? Is this a systems administrative job? It's difficult to give you prep questions for an interview without even knowing what the job title is you are interviewing for or what kind of work this company/companies do. ;-) However for some general topics chromatic wrote a list of expertise manag

Re: perl interview questions

2011-04-21 Thread Brandon McCaig
On Thu, Apr 21, 2011 at 9:07 AM, Luis Roca wrote: > Again, if you provided some more information about the position > (the company's job description) I'm sure people can give you > more specific help – good luck! Wouldn't it be nice though if the people conducting interviews already knew enough a

Re: perl interview questions

2011-04-21 Thread Owen
> On Thu, Apr 21, 2011 at 9:07 AM, Luis Roca > wrote: >> Again, if you provided some more information about the position >> (the company's job description) I'm sure people can give you >> more specific help – good luck! > > Wouldn't it be nice though if the people conducting interviews > already

Re: perl interview questions

2011-04-24 Thread Akhthar Parvez K
Hi Jyoti, On Thursday 21 Apr 2011, Jyoti wrote: > Please give me any link or any tutorial which will be helpful for > preparation of PERL interview. > I don't honestly think someone would write an article or tutorial about "preparing for a Perl interview". That should actually split into two: L

Re: perl interview questions

2011-04-24 Thread Shawn H Corey
On 11-04-24 09:48 AM, Akhthar Parvez K wrote: #5 - Never give a wrong answer - If at all you receive a question that you don't know, do not panic, just be smart and divert the question so you can answer what you know. If you don't know the answer, say so. Then state how you would go about f

Re: perl interview questions

2011-04-24 Thread Akhthar Parvez K
On Sunday 24 Apr 2011, Shawn H Corey wrote: > On 11-04-24 09:48 AM, Akhthar Parvez K wrote: > > #5 - Never give a wrong answer - If at all you receive a question that you > > don't know, do not panic, just be smart and divert the question so you can > > answer what you know. > > If you don't kno

Re: perl interview questions

2011-04-24 Thread Shlomi Fish
On Sunday 24 Apr 2011 17:13:18 Shawn H Corey wrote: > On 11-04-24 09:48 AM, Akhthar Parvez K wrote: > > #5 - Never give a wrong answer - If at all you receive a question that > > you don't know, do not panic, just be smart and divert the question so > > you can answer what you know. > > If you don

Re: perl interview questions

2011-04-24 Thread Shlomi Fish
On Sunday 24 Apr 2011 16:48:10 Akhthar Parvez K wrote: > Hi Jyoti, > > On Thursday 21 Apr 2011, Jyoti wrote: > > Please give me any link or any tutorial which will be helpful for > > preparation of PERL interview. > > I don't honestly think someone would write an article or tutorial about > "prep

Re: perl interview questions

2011-04-24 Thread Shawn H Corey
hink I have to disagree. Sometimes interviewers ask purposely obscure questions not to see if you know the answer but to see what you'd do if you came across a problem you couldn't immediately solve when on the job. The best response is to state you don't know and then tell wha

Re: perl interview questions

2011-04-24 Thread Shlomi Fish
iewee is knowledgable enough and it's not always necessary to > > have that happened by an answer he expected. > > I still think I have to disagree. Sometimes interviewers ask purposely > obscure questions not to see if you know the answer but to see what > you'd do if you cam

Re: perl interview questions

2011-04-25 Thread Akhthar Parvez K
On Monday 25 Apr 2011, Shlomi Fish wrote: > On Sunday 24 Apr 2011 21:01:57 Shawn H Corey wrote: > > On 11-04-24 10:36 AM, Akhthar Parvez K wrote: [ snip ] > > I still think I have to disagree. Sometimes interviewers ask purposely > > obscure questions not to see if you know

Re: perl interview questions

2011-04-25 Thread Shlomi Fish
etimes interviewers ask purposely > > > obscure questions not to see if you know the answer but to see what > > > you'd do if you came across a problem you couldn't immediately solve > > > when on the job. The best response is to state you don't kno

Re: Net::SFTP questions

2007-08-13 Thread Don Scott
On 8/13/07, Don Scott <[EMAIL PROTECTED]> wrote: > use Net::SFTP; > > Net::SFTP->new($remotehost) > or die "could open connection to $remote_host\n"; > $sftp->get($remotedir$remotefile) > or die "could not get $remotefile\n"; > $sftp->do_remove($remotedir$remotefile) >

questions from Learning Perl

2008-04-06 Thread itshardtogetone
Hi, I am doing some homework from the book Learning Perl chapter 4 excercise 1, Looking at the script below, I wonder why line 6 (print "Enter some numbers on separate line: ";) is not printed immediately after the previous print. Thanks use strict; use warnings; my @fred = qw/1 3 5 7 9/; my $fr

General Perl/Web questions

2006-04-28 Thread Steve Gross
I've just finished developing a small web site that uses Perl, CGI, DBI and HTML-Template. Typically, an HTML page calls a Perl script that does a database fetch, parses the data and then puts it on another web page using a template. I've noticed that most of my web pages look the same:

Autovivification / anonymous array questions

2006-07-20 Thread Brian Volk
Hello~ I have a couple of questions from chapter 4 in the Alpaca book. Everything is working fine but I keep getting "I don't understand blue_shirt" whether I create the anonymous array w/ $provisions{$person} = [] unless exists $provisions{$person}; Or if I commen

Eval Questions with blocks

2007-02-19 Thread Gallagher, Tim F \(NE\)
I am working my butt off trying to get eval blocks working. When I run a pert of perl code, if the code fails I dont want the script to terminate. Here is what I am talking about: [CODE] use Win32::Registry; eval{ my ($node) = 'ComputerName'; my ($hNode, $hKey, %values); $HKEY_LOCAL_MACHINE-

Re: perl 5.10 questions

2007-04-03 Thread Paul Johnson
e lets me attach "references" to > the optree, which I can then inspect with caller. > Perl passes this information as a new item in the > return list for caller: a hash reference of pragma > settings." > > Questions: > 1) What is the optree and how is it usef

Re: perl 5.10 questions

2007-04-04 Thread oryann9
> But this is all fairly complicated stuff and > probably a little advanced > for a beginners list. You might find more joy > asking on > comp.lang.perl.moderated, or perlmonks. > > -- > Paul Johnson - [EMAIL PROTECTED] yes but there are a lot of advanced members on the list. ok thanks for r

Re: Perl Interview Questions

2005-08-24 Thread Chris Devers
On Thu, 25 Aug 2005, praba har wrote: > I am working as perl-cgi programmer in a small company. I got a > call from the big company for Perl developer post. So I need perl > related interview point of view questions. Kindly help me for this > interview. "Explain what

Re: Perl Interview Questions

2005-08-24 Thread Ken Perl
rl > > related interview point of view questions. Kindly help me for this > > interview. > > "Explain what a closure is and why you would use one." > > > > > -- > Chris Devers > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > F

RE: Perl Interview Questions

2005-08-24 Thread Dhanashri Bhate
rview questions, nobody from the list will answer favorably! even if someone asks that i want to do this , how to i do it in Perl? the answers would be, try something urself, show us some code and then we'll help you. So, if you have internet access try reading first about perl, get perl install

File::Find script questions

2011-07-18 Thread Marc
I've written a script to traverse my web server, find any files called "error_log", e-mail them to me, and then delete them. It is triggered by cron twice a day. The script works great but I'd like to get advice on how I can clean up my code, so any comments are welcome.

Re: Questions about CGI

2018-06-06 Thread Jim Gibson
> On Jun 6, 2018, at 2:16 PM, Ahmad Bilal wrote: > > Ok, I went over to previously answered questions under the cgi tag here on > stackoverflow. This message was posted to the Perl Beginners list, so you are not at Stackoverflow any more. > > This seems to be the most

Re: Conceptual questions about 'pack'

2004-09-12 Thread John W. Krahn
Bee wrote: Hi, I am very newbie for using the function 'pack', and here I have some questions : Have you read the documentation for pack? perldoc -f pack And unpack? perldoc -f unpack Have you read the pack and unpack tutorial? perldoc perlpacktut Q1. Can I expect that pack can do t

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

Re: Conceptual questions about 'pack'

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

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 Randy W. Sims
Bee wrote: >- 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 more

RE: Conceptual questions about 'pack'

2004-09-13 Thread Bob Showalter
Bee wrote: > > > In case, I am doing something like a log with User v > > > TimesOfSignIn. So, user name will set as 30 char long, and the > > > Signin times is about in scope of a normal integer. I wanna make > > > this a simple DB for this but not a list of single files for each > > > user. So I

Re: IO::Socket::UNIX questions

2004-12-30 Thread Jonathan Paton
> I am working with UNIX Sockets and have some questions > that I cant seem to find answers to on the web. Since the questions was interesting enough to me, I thought I would research the answer. "Perl Cookbook" contains an entire chapter on this. I am not a socket programmer

Re: IO::Socket::UNIX questions

2004-12-30 Thread mgoland
- Original Message - From: Dave Kettmann <[EMAIL PROTECTED]> Date: Thursday, December 30, 2004 5:23 pm Subject: IO::Socket::UNIX questions > Hello list, Hi Dave, > > I am working with UNIX Sockets and have some questions that I cant > seem to find answers to on the w

Re: IO::Socket::UNIX questions

2004-12-31 Thread Jonathan Paton
On Thu, 30 Dec 2004 22:51:00 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > ... > > 3: Do UNIX sockets have less overhead than INET sockets? > > That all depends, it can go both way's. UNIX sockets, is > comunicatting through files. Faster way would be to > communicate through pipe's. I thi

RE: Some Extremely Clueless Questions!

2001-08-05 Thread Birgit Kellner
> On Sunday 05 August 2001 8:01 am, [EMAIL PROTECTED] wrote: >> Hello, >> 1) How exactly do I edit a script? In Word and then change it to a .pl >> file? Do I have to change file types back and forth every time I change >> the script? >> A program that I found quite useful for writing and edi

RE: Some Extremely Clueless Questions!

2001-08-05 Thread Dean Theophilou
Hello: Your questions are not necessarily clueless. I had to do a lot of digging to find out the information detailed below. And before someone screams RTFM, I'll continue... Don't use Word. Go here http://www.perlmonks.org/index.pl?node=Outside%20Links and down

Re: Some Extremely Clueless Questions!

2001-08-05 Thread Latkins333
Dean, Thank you very much for your detailed advice, and thanks to everyone who offered advice. Very helpful. I have gotten this working and can now start asking clueless questions about Perl itself. :-) Len ** In a message dated 8/5/01 2:12:19 PM Pacific Daylight Time

Re: Some Extremely Clueless Questions!

2001-08-05 Thread Bompa
e OS is Unix, but I'd like to practice at > home, where I'm using Windows 95. I downloaded and installed ActivePerl, but > can't get anything whatsoever to run, including the example script that came > with ActivePerl. My questions at this point: > > 1) How exactly do I ed

Re: Some Extremely Clueless Questions!

2001-08-05 Thread Bompa
home, where I'm using Windows 95. I downloaded and installed ActivePerl, but > can't get anything whatsoever to run, including the example script that came > with ActivePerl. My questions at this point: > > 1) How exactly do I edit a script? In Word and then change it t

Re: Some Extremely Clueless Questions!

2001-08-05 Thread Birgit Kellner
--On Sonntag, 05. August 2001 21:03 -0400 Bompa <[EMAIL PROTECTED]> wrote: > > NoteTab - http://www.notetab.com > Seamless support for Perl and Gawk scripts (only commercial > versions). Just for the record: this used to be true for earlier versions of NoteTab. Curren

Re: 3 questions about Perl

2003-01-05 Thread Paul Johnson
t::Scalar has a reasonable pedigree :-) Depending on your needs, bitstrings may suffice. > My questions may be silly as I am the beginner of Perl. It was only the third one I found a little silly ;-) -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMA

Re: CRLF vs LF questions

2003-01-09 Thread Jenda Krynicky
From: "David Eason" <[EMAIL PROTECTED]> > Q1. For Windows, does anyone know of a Windows Explorer add-on that > makes Perl source files with CR-LF terminated lines appear in a > different color or something so I can easily see they need to be > corrected? I doubt anything like this does (or ever w

Re: CRLF vs LF questions

2003-01-09 Thread Rob Dixon
David Re Q1. Get yourself a copy of TextPad http://www.textpad.com/ which will handle any of ANSI, DOS, Unicode or UTF-8 encoding. It identifies the encoding automatically fromt he contents and allows you to change it using Save As... HTH, Rob "David Eason" <[EMAIL PROTECTED]> wrote in message

Re: CRLF vs LF questions

2003-01-10 Thread David Eason
HTML-Kit will do that, too. It's just that I have been known to open up lesser editors from time to time, such as Notepad. I'll check with my ISP to see if the Perl on the Cobalt Raq's can be upgraded. It doesn't matter that much, though. Thanks for the replies. -- To unsubscribe, e-mail: [

Re: Two small string questions

2003-03-27 Thread Stefan Lidman
Christian Calónico wrote: > > Hi, I need some help working with strings. Suppose that I have $block > that's a string of 512 bytes. > 1) How can I have only one byte from it (i.e. i want the third byte)? 2) How > can I get the first n bytes of the string in another string (substring), > deleting t

Questions about sub process management

2003-06-19 Thread Steve Blumenkrantz
I'm using perl to create a regression testing system. The perl program I wrote runs applications, then compares output data with known good data. Sometimes the applications that are under test hang up and keep other tests from being run. I'm currently using the alarm feature of perl on my unix pl

Newbie and Perl+Mail Questions

2003-07-04 Thread Pablo Fischer
Hi all! My name is Pablo Fischer and Im a little new in Perl, however I have a project where I need to parse mails and send mails: I receive 2 files (contacts and arguments), I get 2000 mail adds from the file, so I need to make packages of 100 mails with differents email adds, When I have the

Re: More Newbie OOP Questions ...

2002-10-16 Thread Paul Johnson
On Tue, Oct 15, 2002 at 09:26:33PM -0500, montana wrote: > Take the following example from the perlboot manual: > { package Horse; >@ISA = qw(Animal); >sub sound { "neigh" } >sub name { > my $self = shift; > $$self; >} >

Re: More Newbie OOP Questions ...

2002-10-18 Thread Michael Fowler
On Wed, Oct 16, 2002 at 11:52:44PM +0200, Paul Johnson wrote: > The constructor, then blesses $name into the class "Horse", or more > accurately, blesses a reference to $name. You were right the first time; bless blesses $name. You have to pass a reference so bless can modify the original variabl

Re: More Newbie OOP Questions ...

2002-10-18 Thread Paul Johnson
On Thu, Oct 17, 2002 at 01:49:50PM -0800, Michael Fowler wrote: > On Wed, Oct 16, 2002 at 11:52:44PM +0200, Paul Johnson wrote: > > The constructor, then blesses $name into the class "Horse", or more > > accurately, blesses a reference to $name. > > You were right the first time; bless blesses $na

Some few basic Perl questions

2002-11-23 Thread Mystik gotan
Hiya, I got some basic Perl questions. Hope you don't mind answerring them? 1) What is the use of just putting $var; on 1 line? Example: #!usr/bin/perl -wT # some code $var; Does this technique rescopes the variable? 2) Why is exit() or 1; used on the LAST line. I understand it being on

Re: couple questions about refs

2002-12-16 Thread Jenda Krynicky
From: christopher j bottaro <[EMAIL PROTECTED]> > hello again, > all my c instincts tell me i shouldn't write a function like this: sub > myfunc() { > my $aref = []; > if ( some_cond ) { > return undef; > } > else { > #populate @{$aref} > return $aref; > } > }

Re: couple questions about refs

2002-12-16 Thread Rob Richardson
Chris, I'll take a stab at this to see if my understanding of Perl is correct. Your first subroutine is acceptable under Perl, but it wouldn't be under C++. The reason is that Perl has automatic reference counting and garbage collection. Perl counts the number of references there are to data el

RE: couple questions about refs

2002-12-16 Thread NYIMI Jose (BMB)
00) José. > -Original Message- > From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 16, 2002 3:51 PM > To: [EMAIL PROTECTED] > Subject: Re: couple questions about refs > > > From: christopher j bottaro <[EMAIL PROTECTED]

Re: couple questions about refs

2002-12-16 Thread John W. Krahn
Nyimi Jose wrote: > > > From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] > > > > From: christopher j bottaro <[EMAIL PROTECTED]> > > > > > > #populate @array > > > return [ @array ]; > > > } > > > } > > > > Well ... I would use > > > > return \@array; > > > > it's a bit m

Re: couple questions about refs

2002-12-16 Thread christopher j bottaro
ay. as opposed to \@array which merely returns a reference to something that already exists. but i guess my questions is...well, i asked it above...about whether or not @array will still be in existance when the function ends... thanks, christopher -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: couple questions about refs

2002-12-16 Thread John W. Krahn
ce to to the new anonymous array. as > opposed to \@array which merely returns a reference to something that already > exists. Yes, that is correct. > but i guess my questions is...well, i asked it above...about whether > or not @array will still be in existance when the function ends.

Re: couple questions about refs

2002-12-16 Thread christopher j bottaro
e @array in the second example? > > Yes, that is correct. > > > also, i do understand that [ @array ] constructs and anonymous array, > > copies @array into it, then returns a reference to to the new anonymous > > array. as opposed to \@array which merely returns a refere

Re: couple questions about refs

2002-12-17 Thread Paul Johnson
On Tue, Dec 17, 2002 at 12:39:41AM -0600, christopher j bottaro wrote: > cool beans, thanks. wow, perl is neat, but i fear it will make me a > bad c programmer...;) I think Perl actually made me a better C programmer, but it is sometimes frustrating going down to the level of C. Keep your hand

Re: couple questions about refs

2002-12-17 Thread Jenda Krynicky
From: Paul Johnson <[EMAIL PROTECTED]> > On Tue, Dec 17, 2002 at 12:39:41AM -0600, christopher j bottaro wrote: > > just that memory will stay allocated as long as there is a way to > > reach it? > > Yes. And occassionally even if there isn't. Perl 5 uses reference > counting, and so you have to

Re: couple questions about refs

2002-12-17 Thread christopher j bottaro
On Tuesday 17 December 2002 04:38 am, Paul Johnson wrote: > I think Perl actually made me a better C programmer, but it is sometimes > frustrating going down to the level of C. Keep your hand in with XS > programming :-) what is XS programming? > Yes. And occassionally even if there isn't. Per

Re: couple questions about refs

2002-12-17 Thread John W. Krahn
Christopher J Bottaro wrote: > > On Tuesday 17 December 2002 04:38 am, Paul Johnson wrote: > > I think Perl actually made me a better C programmer, but it is sometimes > > frustrating going down to the level of C. Keep your hand in with XS > > programming :-) > > what is XS programming? perldoc

Yet more file upload questions

2004-04-23 Thread John Pretti
r/bin/perl -w # perlUpload.cgi by John Pretti # Comments/Questions: john[at]web-connected.com # Last modified 04/22/04 ### Load Needed Perl Modules ## use strict; # Make HTML/FORMS/UPLOADING easy to deal with use CGI; # Report errors in the browser use CGI::Carp 'fatalsToBrowser'

Re: More questions regarding hash

2003-08-14 Thread James Edward Gray II
On Tuesday, August 12, 2003, at 03:35 PM, Trina Espinoza wrote: Hi James, Hello again. In the future, I recommend copying the list in replies. That will help you get your problem solved by all the people smarter than me. ;) Sorry to be back so soon with questions. . . No problem, that&#

<    1   2   3   4   5   >