>>>>> "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
: 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
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
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
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]>
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/
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
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
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
> -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
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
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
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
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
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/
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
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
> 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
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 (<
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
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
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
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
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
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
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
> "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?
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
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
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
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():
> >
>
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
> "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
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
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
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
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
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
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
> 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
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
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
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
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
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
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
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
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
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
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)
>
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
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:
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
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-
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
> 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
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
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
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
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.
> 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
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
> 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
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
> > > > - 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
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
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
> 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
- 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
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
> 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
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
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
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
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
--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
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
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
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
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: [
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
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
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
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;
>}
>
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
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
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
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;
> }
> }
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
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]
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
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]
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.
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
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
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
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
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
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'
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
201 - 300 of 480 matches
Mail list logo