Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 perusing the Monastery: (6)
As of 2016-06-25 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (323 votes). Check out past polls.