![]() |
![]() | | ![]() |
| |||||||
| Tutorial-How To Post All Your Custom Made Tutorials And Explainations here |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
User ID: 166 Join Date: Dec 2008 Posts: 1,807 Reputation: 2370 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Credits:203,515 Thanks: 463 Thanked Giving : 392 Times in : 237 Posts | Running perl scripts Before you can run Perl, you have to install it on your system. If you haven't done so already, go to Code: Content Blocked By Underground Team..Only For Members not for zero post and guest. For the first part of this course, we'll be running perl scripts in a DOS window. This means we're going to be typing words in. Yes indeed, a command line environment instead of a Windows GUI! Yuck or yay, depending on your point of view. Once you've installed perl and rebooted into Windows, bring up a DOS window. It doesn't matter what directory you are in for now. Just type in: perl -v and you should get back a screenful of version information from perl. If you get a "bad command or filename" message, Perl isn't properly installed. See if you can fix it. Running your first Perl script: Hello World! Now it's time to feel like you're getting somewhere. You're going to write your first perl script. Go back to your DOS prompt and this time, make sure you're working in a directory where you can edit a file or two. Use notepad or some simple text editor (not MS Word!) to create a file with this line in it. You can cut and paste it directly from here: print "hello world\n"; Save the file as "hello.pl" and turn to your DOS session and type: perl hello.pl The screen should show hello world right underneath. Congratulations, you've just run your first perl script! Now you need to learn a bit more about the language so you can create something more interesting. Code: Content Blocked By Underground Team..Only For Members not for zero post and guest. |
| | |
![]() |
| Tags |
| perl, running, scripts |
(View-All) Members who have read this thread in the last 3 days : 0 | |
| There are no names to display. |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 101 Running Songs (2009) | lucky | Europe Music | 0 | 09-28-2009 12:56 AM |
| How Long Has Your System Been Running? | (~sensei~) | Tutorial-How To | 0 | 05-03-2009 02:31 PM |
| All softbizscripts.com scripts | -AnaRchy-99- | Templates-Skin | 0 | 05-01-2009 05:53 PM |
| 85 PHP SCRIPTS | _-FUCK-_ | VBulletin-Jomla-WP | 0 | 04-22-2009 07:15 PM |
| All MySpace Scripts from M2Scripts.com | _-FUCK-_ | VBulletin-Jomla-WP | 0 | 04-22-2009 06:41 PM |