Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Making Cue Scripts with Perl

by jwkrahn (Monsignor)
on Dec 17, 2012 at 21:19 UTC ( #1009235=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open PLAY, $mit_shakes || die "Could not open file: $!\n";
    
  2. or download this
    open( PLAY, $mit_shakes ) || die "Could not open file: $!\n";
    
  3. or download this
    open PLAY, $mit_shakes or die "Could not open file: $!\n";
    
  4. or download this
    until ($line =~ m/<\/head>/) {
      if ($line =~ m/<title>(.*)<\/title>/) {
    ...
      print "$line\n";
      $line = <PLAY>;
    }
    
  5. or download this
    while ( my $line = <PLAY> ) {
        last if $line =~ m/<\/head>/;
    ...
        }
        print "$line\n";
    }
    
  6. or download this
    my $i = 0;
    
    ...
    }
    
    print ". </h2>\n";
    
  7. or download this
    print join ', ', @ARGV, "</h2>\n";
    
  8. or download this
    while (<PLAY>) {
      $line = $_;
    
  9. or download this
    while ( my $line = <PLAY> ) {
    
  10. or download this
      foreach (@ARGV) {
        my $character = $_;
    
  11. or download this
      foreach my $character ( @ARGV ) {
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009235]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (15)
As of 2015-07-29 16:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (265 votes), past polls