Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: RFC: newscript.pl , my very first script!

by Paladin (Vicar)
on Jul 24, 2015 at 20:38 UTC ( #1136225=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        if ($addmodule =~ /yes/i) {
            print "\nThis script does NOT add a ';' for you!\nSay 'done' w
    +hen you done..\nModules: ";
    ...
            print "I assume no.\n";
            _makeperl();
        }
    
  2. or download this
        if ($addmodule =~ /yes/i) {
            my @modules;
    ...
            print "I assume no.\n";
            _makeperl();
        }
    
  3. or download this
    sub _makeperl {
        open (NEWSCRIPT, '>', $name);
    ...
                print NEWSCRIPT "use $mods";
            }
        }
    
  4. or download this
    sub _makeperl {
        my @mods = @_
    ...
                print NEWSCRIPT "use $mod";
            }
        }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (1)
As of 2022-07-07 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?