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

Re: Question regarding using references with Net::SSH2 in module

by Preceptor (Deacon)
on Jun 14, 2013 at 20:58 UTC ( #1039036=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        #print $channel "$cmd\n";
        #while (<$channel>) {
        print {${$channel}} "$cmd\n";
        while (<${$channel}>) {
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    open ( my $filehandle, ">", "testfile.txt" );
    &print_to_fh ( \$filehandle );
    close ( $filehandle ); 
    
  3. or download this
    sub print_to_fh
    {
    ...
    open ( my $filehandle, ">", "testfile.txt" );
    &print_to_fh ( \$filehandle );
    close ( $filehandle ); 
    
  4. or download this
      print {$$ref_to_fh} "Even more stuff\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039036]
help
Chatterbox?
[zentara]: See problems with Nvidia and Linus Torvalds
[choroba]: that's 2012
[zentara]: I just acquired a computer with the card type, and wondered if it was best to stick with the open-source code or use NVIDIA's proprietary code
[zentara]: do you feel good about a non-open-source code, being in control of your display functions?
[choroba]: If you're not going to play 3d games on it, using the open source driver should be enough

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2017-05-26 13:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?