Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Record Separator affecting Regex

by dingus (Friar)
on Nov 08, 2002 at 07:42 UTC ( #211365=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $/= ';'.$/
    
  2. or download this
    while (my $line = <DATA> ){
       next if ($line =~ s/^#/); # skip comment lines
       print "Query: $line\n";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2015-08-05 05:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (79 votes), past polls