Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by Paladin (Vicar)
on Jul 24, 2015 at 20:38 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-24 10:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found