[SP-pm] bons hábitos em perl->sugestões?
Luis Motta Campos
luismottacampos at yahoo.co.uk
Thu Jul 31 05:40:04 PDT 2008
André Garcia Carneiro wrote:
> #! /usr/bin/perl
>
> use strict;
> use warnings;
>
> open my $fh,'<','meu_arquivo_de_exemplo.txt' or die $!;
> --------------------|----|--------------------------------------------------|
> 1 2 3
> PS: perldoc -f open é mais esclarecedor do q eu escrevi... rs!
Ah, Pequeno Gafanhoto... aqui:
open # comando
my $file_handle, # argumento #1
'<', # argumento #2
'meu_arquivo.txt' # argument #3
or die $!; # tratamento de erros
Putamplexos!
--
Luis Motta Campos is a software engineer,
Perl Programmer, foodie and photographer.
More information about the SaoPaulo-pm
mailing list