Created
August 25, 2013 05:43
-
-
Save koji/6332226 to your computer and use it in GitHub Desktop.
perl入学式 #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
#use strict; | |
#use warnings; | |
my @array = qw ( 0123 123 XXX); | |
print "表示:"."@array\n"; | |
my $num = join '-' , @array; | |
print "電話番号的なもの:"."$num\n"; | |
my $ex_str = "/usr/bin/env perl"; | |
my @words = split /\//, $ex_str; | |
print "/区切り:"."@words\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment