mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-02-06 16:28:52 +01:00
Merge pull request #375 from xakon/master
[perl/en] Fix some links at Perl tutorial
This commit is contained in:
commit
dac3063ddf
@ -94,12 +94,12 @@ python2 hello.py 2> "error.err"
|
||||
# The output error will overwrite the file if it exists, if you want to
|
||||
# concatenate them, use ">>" instead.
|
||||
|
||||
# Commands can be substitued within other commands using $( ):
|
||||
# Commands can be substituted within other commands using $( ):
|
||||
# The following command displays the number of files and directories in the
|
||||
# current directory.
|
||||
echo "There are $(ls | wc -l) items here."
|
||||
|
||||
# Bash uses a case statement that works similarily to switch in Java and C++:
|
||||
# Bash uses a case statement that works similarly to switch in Java and C++:
|
||||
case "$VARIABLE" in
|
||||
#List patterns for the conditions you want to meet
|
||||
0) echo "There is a zero.";;
|
||||
|
@ -377,7 +377,7 @@ nil ; for false - and the empty list
|
||||
;; 4. Equality
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; Common Lisp has a sophisticated equality system. A couple are covered yere.
|
||||
;; Common Lisp has a sophisticated equality system. A couple are covered here.
|
||||
|
||||
;; for numbers use `='
|
||||
(= 3 3.0) ; => t
|
||||
|
@ -40,7 +40,7 @@ Version control is a system that records changes to a file, or set of files, ove
|
||||
|
||||
### Repository
|
||||
|
||||
A set of files, directories, historical records, commits, and heads. Imagine it as a source code datastructure,
|
||||
A set of files, directories, historical records, commits, and heads. Imagine it as a source code data structure,
|
||||
with the attribute that each source code "element" gives you access to its revision history, among other things.
|
||||
|
||||
A git repository is comprised of the .git directory & working tree.
|
||||
|
@ -250,7 +250,7 @@ public class LearnJava {
|
||||
// Conditional Shorthand
|
||||
// You can use the '?' operator for quick assignments or logic forks.
|
||||
// Reads as "If (statement) is true, use <first value>, otherwise, use <second value>"
|
||||
int foo = 5
|
||||
int foo = 5;
|
||||
String bar = (foo < 10) ? "A" : "B";
|
||||
System.out.println(bar); // Prints A, because the statement is true
|
||||
|
||||
|
@ -131,19 +131,17 @@ sub logger {
|
||||
# Now we can use the subroutine just as any other built-in function:
|
||||
|
||||
logger("We have a logger subroutine!");
|
||||
|
||||
|
||||
```
|
||||
|
||||
#### Using Perl modules
|
||||
|
||||
Perl modules provide a range of features to help you avoid reinventing the wheel, and can be downloaded from CPAN ( http://www.cpan.org/ ). A number of popular modules are included with the Perl distribution itself.
|
||||
Perl modules provide a range of features to help you avoid reinventing the wheel, and can be downloaded from CPAN (http://www.cpan.org/). A number of popular modules are included with the Perl distribution itself.
|
||||
|
||||
perlfaq contains questions and answers related to many common tasks, and often provides suggestions for good CPAN modules to use.
|
||||
|
||||
#### Further Reading
|
||||
|
||||
- [perl-tutorial](http://perl-tutorial.org/)
|
||||
- [Learn at www.perl.com](http://www.perl.org/learn.html)
|
||||
- [perldoc](http://perldoc.perl.org/)
|
||||
- and perl built-in : `perldoc perlintro`
|
||||
- [perl-tutorial](http://perl-tutorial.org/)
|
||||
- [Learn at www.perl.com](http://www.perl.org/learn.html)
|
||||
- [perldoc](http://perldoc.perl.org/)
|
||||
- and perl built-in : `perldoc perlintro`
|
||||
|
Loading…
x
Reference in New Issue
Block a user