Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: What operator should perl5porters use for safe dereferencing?

by de-merphq (Beadle)
on May 29, 2012 at 15:29 UTC ( #973048=note: print w/replies, xml ) Need Help??


in reply to Re: What operator should perl5porters use for safe dereferencing?
in thread What operator should perl5porters use for safe dereferencing?

I am curious what relevance you think Safe has, and why you would consider a deprecated module mandatory?

Update: oh, maybe it is not deprecated.

---
alter ego of demerphq
  • Comment on Re^2: What operator should perl5porters use for safe dereferencing?

Replies are listed 'Best First'.
Re^3: What operator should perl5porters use for safe dereferencing?
by thomas895 (Chaplain) on May 29, 2012 at 16:01 UTC

    Safe, while perhaps not the best example, does allow execution without the risk of your program dieing. I guess it's for the folks who have something against eval.

    ~Thomas~
    I believe that the source code to life is written in Perl :-)
      Um, no, eval prevents dieing, Safe prevents ops you don't allow (in theory) like exit, system, etc

        Safe can -- if (ab)used correctly -- prevent your program from dieing as well.

        ~Thomas~
        I believe that the source code to life is written in Perl :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://973048]
help
Chatterbox?
[Lady_Aleena]: Hello everyone. I'm having a blonde moment. I can push an array to an array, right? push @to_array, @another_array;
[shmem]: of course
[shmem]: the members of @another_array are conflated to @array
[shmem]: try it out:
[Lady_Aleena]: shmem, thanks. I'm am way out of practice.
[shmem]: perl -lE '@foo = (0..3);@bar = (4..7); push @foo,@bar; say for @foo'
[Lady_Aleena]: shmem, I feel like an idiot for forgetting something so basic.
shmem puts a big cauldron of "silly con charme" on the table in the refectorium

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2017-04-27 11:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (503 votes). Check out past polls.