Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Changed the references example to more inspiring
  • Loading branch information
Tadeusz Sośnierz committed Jul 26, 2010
1 parent db4b666 commit 7fb0ae1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Binary file modified perl6.pdf
Binary file not shown.
9 changes: 6 additions & 3 deletions perl6.tex
Expand Up @@ -273,24 +273,27 @@
Nie ma rozróżnienia na zmienne i referencje do nich,
a więc nie ma już problemów z dereferowaniem tychże.
\begin{verbatim}
my $a = [ { foo => [1, 2, 3] } ];
my $a = { foo => [1, 2, 3] }
\end{verbatim}
\begin{columns}[t]
\begin{column}{0.5\textwidth}
\begin{block}{Perl 5}
\begin{verbatim}
say $a->[0]->{foo}->[1] # 2
push @{ $href->{foo} }, 4

This comment has been minimized.

Copy link
@alexm

alexm Jul 26, 2010

Contributor

That $href should be $a

\end{verbatim}
\end{block}
\end{column}
\begin{column}{0.5\textwidth}
\begin{block}{Perl 6}
\begin{verbatim}
say $a[0]<foo>[1] # 2
$a<foo>.push: 4
# albo $a<foo>.push(4)
\end{verbatim}
\end{block}
\end{column}
\end{columns}
{\scriptsize(Podczas prezentacji podany przykład był nieco inny,
zmieniłem go aby podkreślić efekt)}
\end{frame}
\subsection{Funkcje i parametry}
\begin{frame}[fragile]{Funkcje i parametry}
Expand Down

0 comments on commit 7fb0ae1

Please sign in to comment.