< Perl
Content added Content deleted
imported>Kunda mNo edit summary |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
* Access command line arguments using '''@ARGV'''. |
* Access command line arguments using '''@ARGV'''. |
||
===Example=== |
|||
<pre> |
|||
perl -e 'for $i (0..255) {print "$i:&#$i;<br>\n";}' >allutf8.html |
|||
</pre> |
|||
===Tutorials=== |
===Tutorials=== |
||
* [http://www.theperlreview.com/Articles/v0i1/one-liners.pdf Tutorial]] from 'The Perl Review' magazine. (.pdf) |
|||
* [http://www.wlug.org.nz/PerlOneLiners Waikato Linux User Group] One liner tutorial |
|||
⚫ | |||
⚫ | |||
[[Category:Hacking]] |
|||
[[Category:Scripts]] |
|||
[[Category:Programming]] |
Latest revision as of 01:05, 5 March 2006
Use perl on your command line
Operators[edit]
- The “|�? (pipe) symbol takes the output from a command line command and makes it the standard input of your 1 line Perl program.
- The diamond operator, <>, reads lines from standard input.
- Access command line arguments using @ARGV.
Example[edit]
perl -e 'for $i (0..255) {print "$i:&#$i;<br>\n";}' >allutf8.html
Tutorials[edit]
- Tutorial] from 'The Perl Review' magazine. (.pdf)
- Waikato Linux User Group One liner tutorial