[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] What's error "chunk 7072"?



Three beginner's easy questions:

Question 1:
Can anyone tell me what the following warning means?

# Use of uninitialized value, <WEBLOG> chunk 7072.
                               ^^^^^^^^^^^^^^^^^^

I've checked on-line docs, but couldn't figure out why it came up and what's "chuck 7072". I was using "use stric" and "#!perl -w". Do I need to declare FILEDANDLES?

---------------------------------------------

Question 2:

How to write a subroutine that takes in a file name and returns true or false depending whether its extension is one of qw(m ma nb mov hqx). (I don't want a hard-wired ||...||...|| solution.)

The following is my try, but didn't work.

sub funct {
	my($x);
	$x = $_[0];
	$x =~ s@^[^.]+\.(.+)$@$1@;
	$x =~ m@m|ma|nb|mov|hqx@;  #this line is incorrect. I knew.
}; 

---------------------------------------------
Question 3:

Can anyone tell me the location of on-line doc that explains the

#!perl

line? I knew roughly what it is and what it does, but would like to read about it. (I did grep the pod, but didn't find explainations)

Thanks for any hint.

 Xah, xah@best.com
 http://www.best.com/~xah/Wallpaper_dir/c0_WallPaper.html



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch