Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

on the fly reference to subroutine output

by ISAI student (Scribe)
on Mar 04, 2013 at 14:43 UTC ( #1021659=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub2( sub1() ) ;
    
  2. or download this
    { # minimal scope for @temp
       my @temp = sub1() ;
       sub2 ( \@temp ) ;
    } # end of local scope
    
  3. or download this
    sub2( some_code( sub1() )  )
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1021659]
Front-paged by Corion
help
Chatterbox?
[Cosmic37]: when slurping one can undef the record separator thingy; but presumably one should redefine it afterwards? how?
[Cosmic37]: I'm wondering whether there is a specific/(or at least "usual") command or does one take a copy before undefining and then copy it back after slurping file into a string?
[BarApp]: I need help accessing perl files. I need permission!!!
[Cosmic37]: I wish thee a peachy life and express gratitude for considering my pathetic questions
[erix]: record separator
[Cosmic37]: Permissions are interesting earthlings. Did nature determine who gives permission and who asks permission. Who was the first to get permission? Are you not related to them as one big earthling family?

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2017-06-29 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (672 votes). Check out past polls.