Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Passing commands to subroutines

by citromatik (Curate)
on Jul 01, 2009 at 15:39 UTC ( [id://776463]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
      system ($comm);
      print "$?\n";
    }
    
  2. or download this
    $ perl test.pl file.txt
    
  3. or download this
    $ perl test.pl file\ name.txt
    
  4. or download this
    if (isReadableFile ($ref_file)) {
      $ref_file =~ s/ /\\ /g;  ###### Added
    ...
    } else {
      print STDERR "$ref_file Does not exist\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-19 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found