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

Re^2: Syntax error when trying to use a hash value as a file stream specifier

by afoken (Chancellor)
on Sep 03, 2022 at 10:47 UTC ( [id://11146655]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Some::Third::Party::Module;
    # ...
    ...
       say "Done";
    }
    # ...
    
  2. or download this
    #!/usr/bin/perl
    # ...
    ...
    print "\x33\xFF\x81\x73";
    select $oldSelected;
    close $h;
    
  3. or download this
    open my $h,'>:raw','output.bin';
    print $h "\x00\x42\xAF\x99";
    doSomething();
    print $h "\x33\xFF\x81\x73";
    close $h;
    
  4. or download this
    open my $h,'>:raw','output.bin';
    my $oldSelected=select $h;
    ...
    print "\x33\xFF\x81\x73";
    select $oldSelected;
    close $h;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (8)
As of 2024-04-18 14:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found