Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Reaped: Re^2: Can't figure out how to include LAST member of the array

by NodeReaper (Curate)
on Feb 09, 2021 at 20:31 UTC ( #11128148=note: print w/replies, xml ) Need Help??


in reply to Re: Can't figure out how to include LAST member of the array
in thread Can't figure out how to include LAST member of the array

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Reaped: Re^2: Can't figure out how to include LAST member of the array

Replies are listed 'Best First'.
Re^3: Can't figure out how to include LAST member of the array
by jdporter (Canon) on Feb 09, 2021 at 20:38 UTC

    dude, please stop pretending like you understand perl code, or indeed programming at all. Your response is completely wrong.

      Oh, I'm sorry. I am learning by practicing stuff out; I usually do printing of the values as I go then arrange those somehow before my next subroutine. Here, I just could come up with a good way to get the last element of what will be -(what I think...maybe)- it will be a hash to reference sizes of each polygon. I appreciate the help. Thanks!

        perlynewby the above comment was not directed to you.

        Note that $i <= ($End-1) can be simplified to $i < $End and also you can use single quotes inside double quotes so that you don't have to escape double quotes print "aaa\"xx\"zzz\n"; print "aaa'xx'zzz\n";

        I hope Perl helps you automate

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11128148]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2021-05-07 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (91 votes). Check out past polls.

    Notices?